commit 1c1cf60410b6140105ca72487cb10755ed2de847
parent 6015adfa2aea621f38dbfe2bafdc1ddb6baefa08
Author: Anselm R. Garbe <garbeam@wmii.de>
Date: Wed, 8 Mar 2006 22:56:31 +0100
if /class/X:z contents are empty, ws tag is inherited (or /def/tag if /ws does not exists)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/wm/client.c b/cmd/wm/client.c
@@ -335,7 +335,7 @@ attach_client(Client *c)
if(!ntag)
alloc_tag(def.tag);
- cext_strlcpy(c->tags, tc ? tc->tags : def.tag, sizeof(c->tags));
+ cext_strlcpy(c->tags, tc && strlen(tc->tags) ? tc->tags : def.tag, sizeof(c->tags));
update_ctags();
}