dwm-meillo
changeset 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 |
files | client.c tag.c |
diffstat | 2 files changed, 10 insertions(+), 8 deletions(-) [+] |
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;
2.1 --- a/tag.c Wed Sep 06 13:56:46 2006 +0200 2.2 +++ b/tag.c Wed Sep 06 15:30:28 2006 +0200 2.3 @@ -110,8 +110,7 @@ 2.4 if(!matched) 2.5 for(i = 0; i < ntags; i++) 2.6 c->tags[i] = seltag[i]; 2.7 - if(!c->isfloat) 2.8 - for(c->weight = 0; c->weight < ntags && !c->tags[c->weight]; c->weight++); 2.9 + for(c->weight = 0; c->weight < ntags && !c->tags[c->weight]; c->weight++); 2.10 } 2.11 2.12 void 2.13 @@ -125,8 +124,7 @@ 2.14 for(i = 0; i < ntags; i++) 2.15 sel->tags[i] = False; 2.16 sel->tags[arg->i] = True; 2.17 - if(!sel->isfloat) 2.18 - sel->weight = arg->i; 2.19 + sel->weight = arg->i; 2.20 arrange(NULL); 2.21 } 2.22 2.23 @@ -142,7 +140,6 @@ 2.24 for(i = 0; i < ntags && !sel->tags[i]; i++); 2.25 if(i == ntags) 2.26 sel->tags[arg->i] = True; 2.27 - if(!sel->isfloat) 2.28 - sel->weight = (i == ntags) ? arg->i : i; 2.29 + sel->weight = (i == ntags) ? arg->i : i; 2.30 arrange(NULL); 2.31 }