aewl

changeset 440:9d73c8298b2e

maybe this might work
author Anselm R. Garbe <arg@10kloc.org>
date Wed, 06 Sep 2006 13:56:46 +0200
parents baf86d388a77
children 785bad5f21dd
files client.c config.mk tag.c
diffstat 3 files changed, 9 insertions(+), 4 deletions(-) [+]
line diff
     1.1 --- a/client.c	Wed Sep 06 12:19:07 2006 +0200
     1.2 +++ b/client.c	Wed Sep 06 13:56:46 2006 +0200
     1.3 @@ -243,6 +243,8 @@
     1.4  		c->isfloat = trans
     1.5  			|| (c->maxw && c->minw &&
     1.6  				c->maxw == c->minw && c->maxh == c->minh);
     1.7 +	if(c->isfloat)
     1.8 +		c->weight = ntags;
     1.9  
    1.10  	if(clients)
    1.11  		clients->prev = c;
     2.1 --- a/config.mk	Wed Sep 06 12:19:07 2006 +0200
     2.2 +++ b/config.mk	Wed Sep 06 13:56:46 2006 +0200
     2.3 @@ -1,5 +1,5 @@
     2.4  # dwm version
     2.5 -VERSION = 1.4
     2.6 +VERSION = 1.5
     2.7  
     2.8  # Customize below to fit your system
     2.9  
     3.1 --- a/tag.c	Wed Sep 06 12:19:07 2006 +0200
     3.2 +++ b/tag.c	Wed Sep 06 13:56:46 2006 +0200
     3.3 @@ -110,7 +110,8 @@
     3.4  	if(!matched)
     3.5  		for(i = 0; i < ntags; i++)
     3.6  			c->tags[i] = seltag[i];
     3.7 -	for(c->weight = 0; c->weight < ntags && !c->tags[c->weight]; c->weight++);
     3.8 +	if(!c->isfloat)
     3.9 +		for(c->weight = 0; c->weight < ntags && !c->tags[c->weight]; c->weight++);
    3.10  }
    3.11  
    3.12  void
    3.13 @@ -124,7 +125,8 @@
    3.14  	for(i = 0; i < ntags; i++)
    3.15  		sel->tags[i] = False;
    3.16  	sel->tags[arg->i] = True;
    3.17 -	sel->weight = arg->i;
    3.18 +	if(!sel->isfloat)
    3.19 +		sel->weight = arg->i;
    3.20  	arrange(NULL);
    3.21  }
    3.22  
    3.23 @@ -140,6 +142,7 @@
    3.24  	for(i = 0; i < ntags && !sel->tags[i]; i++);
    3.25  	if(i == ntags)
    3.26  		sel->tags[arg->i] = True;
    3.27 -	sel->weight = (i == ntags) ? arg->i : i;
    3.28 +	if(!sel->isfloat)
    3.29 +		sel->weight = (i == ntags) ? arg->i : i;
    3.30  	arrange(NULL);
    3.31  }