Mercurial > dwm-meillo
changeset 440:9d73c8298b2e
maybe this might work
author | Anselm R. Garbe <arg@10kloc.org> |
---|---|
date | Wed, 06 Sep 2006 13:56:46 +0200 (2006-09-06) |
parents | baf86d388a77 |
children | 785bad5f21dd |
files | client.c config.mk tag.c |
diffstat | 3 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/client.c Wed Sep 06 12:19:07 2006 +0200 +++ b/client.c Wed Sep 06 13:56:46 2006 +0200 @@ -243,6 +243,8 @@ c->isfloat = trans || (c->maxw && c->minw && c->maxw == c->minw && c->maxh == c->minh); + if(c->isfloat) + c->weight = ntags; if(clients) clients->prev = c;
--- a/config.mk Wed Sep 06 12:19:07 2006 +0200 +++ b/config.mk Wed Sep 06 13:56:46 2006 +0200 @@ -1,5 +1,5 @@ # dwm version -VERSION = 1.4 +VERSION = 1.5 # Customize below to fit your system
--- a/tag.c Wed Sep 06 12:19:07 2006 +0200 +++ b/tag.c Wed Sep 06 13:56:46 2006 +0200 @@ -110,7 +110,8 @@ if(!matched) for(i = 0; i < ntags; i++) c->tags[i] = seltag[i]; - for(c->weight = 0; c->weight < ntags && !c->tags[c->weight]; c->weight++); + if(!c->isfloat) + for(c->weight = 0; c->weight < ntags && !c->tags[c->weight]; c->weight++); } void @@ -124,7 +125,8 @@ for(i = 0; i < ntags; i++) sel->tags[i] = False; sel->tags[arg->i] = True; - sel->weight = arg->i; + if(!sel->isfloat) + sel->weight = arg->i; arrange(NULL); } @@ -140,6 +142,7 @@ for(i = 0; i < ntags && !sel->tags[i]; i++); if(i == ntags) sel->tags[arg->i] = True; - sel->weight = (i == ntags) ? arg->i : i; + if(!sel->isfloat) + sel->weight = (i == ntags) ? arg->i : i; arrange(NULL); }