dwm-meillo

diff client.c @ 441:785bad5f21dd

does this preserve z order for anthony?
author Anselm R. Garbe <arg@10kloc.org>
date Wed, 06 Sep 2006 15:30:28 +0200
parents 9d73c8298b2e
children 056a5072c70a
line diff
     1.1 --- a/client.c	Wed Sep 06 13:56:46 2006 +0200
     1.2 +++ b/client.c	Wed Sep 06 15:30:28 2006 +0200
     1.3 @@ -99,6 +99,13 @@
     1.4  		}
     1.5  	}
     1.6  	if(c) {
     1.7 +		if(c->isfloat || arrange == dofloat) {
     1.8 +			detach(c);
     1.9 +			if(clients)
    1.10 +				clients->prev = c;
    1.11 +			c->next = clients;
    1.12 +			clients = c;
    1.13 +		}
    1.14  		grabbuttons(c, True);
    1.15  		drawtitle(c);
    1.16  		XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
    1.17 @@ -243,8 +250,6 @@
    1.18  		c->isfloat = trans
    1.19  			|| (c->maxw && c->minw &&
    1.20  				c->maxw == c->minw && c->maxh == c->minh);
    1.21 -	if(c->isfloat)
    1.22 -		c->weight = ntags;
    1.23  
    1.24  	if(clients)
    1.25  		clients->prev = c;