projects
/
suckless
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51f6405
)
preserving c1->snext and c2->snext in swap() as well.
author
Anselm R. Garbe
<arg@suckless.org>
Fri, 5 Jan 2007 20:52:17 +0000
(21:52 +0100)
committer
Anselm R. Garbe
<arg@suckless.org>
Fri, 5 Jan 2007 20:52:17 +0000
(21:52 +0100)
view.c
patch
|
blob
|
history
diff --git
a/view.c
b/view.c
index 9bd75846f7f32f8bd9cb6c1d61ceb2a9c82c4161..b72e4d5fa69e410062e23c679710ea0a771825e6 100644
(file)
--- 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