about summary refs log tree commit diff stats
path: root/view.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-01-05 21:52:17 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-01-05 21:52:17 +0100
commit0b7c0f10eeee1c473b1adcee3a8b90db61b854e9 (patch)
treec4e7387029d1d93a88ceaf2abf55f256f1734fbc /view.c
parent51f6405b0d7a9ba34696cafbc08303b1e5b14cfa (diff)
downloaddwm-0b7c0f10eeee1c473b1adcee3a8b90db61b854e9.tar.gz
preserving c1->snext and c2->snext in swap() as well.
Diffstat (limited to 'view.c')
-rw-r--r--view.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/view.c b/view.c
index 9bd7584..b72e4d5 100644
--- a/view.c
+++ b/view.c
@@ -34,15 +34,19 @@ swap(Client *c1, Client *c2) {
 	Client tmp = *c1;
 	Client *c1p = c1->prev;
 	Client *c1n = c1->next;
+	Client *c1s = c1->snext;
 	Client *c2p = c2->prev;
 	Client *c2n = c2->next;
+	Client *c2s = c2->snext;
 
 	*c1 = *c2;
 	*c2 = tmp;
 	c1->prev = c1p;
 	c1->next = c1n;
+	c1->snext = c1s;
 	c2->prev = c2p;
 	c2->next = c2n;
+	c2->snext = c2s;
 }
 
 static void