aewl

diff view.c @ 659:498b86c72a40

preserving c1->snext and c2->snext in swap() as well.
author Anselm R. Garbe <arg@suckless.org>
date Fri, 05 Jan 2007 21:52:17 +0100
parents b4d1ef7e407f
children 4c6d27f03773
line diff
     1.1 --- a/view.c	Fri Jan 05 16:35:45 2007 +0100
     1.2 +++ b/view.c	Fri Jan 05 21:52:17 2007 +0100
     1.3 @@ -34,15 +34,19 @@
     1.4  	Client tmp = *c1;
     1.5  	Client *c1p = c1->prev;
     1.6  	Client *c1n = c1->next;
     1.7 +	Client *c1s = c1->snext;
     1.8  	Client *c2p = c2->prev;
     1.9  	Client *c2n = c2->next;
    1.10 +	Client *c2s = c2->snext;
    1.11  
    1.12  	*c1 = *c2;
    1.13  	*c2 = tmp;
    1.14  	c1->prev = c1p;
    1.15  	c1->next = c1n;
    1.16 +	c1->snext = c1s;
    1.17  	c2->prev = c2p;
    1.18  	c2->next = c2n;
    1.19 +	c2->snext = c2s;
    1.20  }
    1.21  
    1.22  static void