maybe this might work e8389a4c
Anselm R. Garbe · 2006-09-06 13:56 3 file(s) · +9 −4
client.c +2 −0
243 243
		c->isfloat = trans
244 244
			|| (c->maxw && c->minw &&
245 245
				c->maxw == c->minw && c->maxh == c->minh);
246 +
	if(c->isfloat)
247 +
		c->weight = ntags;
246 248
247 249
	if(clients)
248 250
		clients->prev = c;
config.mk +1 −1
1 1
# dwm version
2 -
VERSION = 1.4
2 +
VERSION = 1.5
3 3
4 4
# Customize below to fit your system
5 5
tag.c +6 −3
110 110
	if(!matched)
111 111
		for(i = 0; i < ntags; i++)
112 112
			c->tags[i] = seltag[i];
113 -
	for(c->weight = 0; c->weight < ntags && !c->tags[c->weight]; c->weight++);
113 +
	if(!c->isfloat)
114 +
		for(c->weight = 0; c->weight < ntags && !c->tags[c->weight]; c->weight++);
114 115
}
115 116
116 117
void
124 125
	for(i = 0; i < ntags; i++)
125 126
		sel->tags[i] = False;
126 127
	sel->tags[arg->i] = True;
127 -
	sel->weight = arg->i;
128 +
	if(!sel->isfloat)
129 +
		sel->weight = arg->i;
128 130
	arrange(NULL);
129 131
}
130 132
140 142
	for(i = 0; i < ntags && !sel->tags[i]; i++);
141 143
	if(i == ntags)
142 144
		sel->tags[arg->i] = True;
143 -
	sel->weight = (i == ntags) ? arg->i : i;
145 +
	if(!sel->isfloat)
146 +
		sel->weight = (i == ntags) ? arg->i : i;
144 147
	arrange(NULL);
145 148
}