wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit 94a4f31e2564dd8d2c498524f56fa2091aba80e8
parent 1c1cf60410b6140105ca72487cb10755ed2de847
Author: Anselm R. Garbe <garbeam@wmii.de>
Date:   Wed,  8 Mar 2006 23:06:48 +0100

fixed tag inheritance


Diffstat:
cmd/wm/client.c | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/cmd/wm/client.c b/cmd/wm/client.c @@ -331,11 +331,10 @@ void attach_client(Client *c) { TClass *tc = client2class(c); + Tag *t; - if(!ntag) - alloc_tag(def.tag); - - cext_strlcpy(c->tags, tc && strlen(tc->tags) ? tc->tags : def.tag, sizeof(c->tags)); + t = ntag ? tag[sel] : alloc_tag(def.tag); + cext_strlcpy(c->tags, tc && strlen(tc->tags) ? tc->tags : t->name, sizeof(c->tags)); update_ctags(); }