commit 56ffc5717a774075fefed20b5949ff76942bd43d
parent 311e369da192a5ee2c3c524f1f3450f5d04f6f90
Author: Anselm R. Garbe <garbeam@wmii.de>
Date: Sat, 11 Mar 2006 01:32:10 +0100
transients inherit tags of parent
Diffstat:
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/cmd/wm/client.c b/cmd/wm/client.c
@@ -314,8 +314,12 @@ void
manage_client(Client *c)
{
Tag *t;
+ Client *trans;
- match_tags(c);
+ if(c->trans && (trans = win2client(c->trans)))
+ cext_strlcpy(c->tags, trans->tags, sizeof(c->tags));
+ else
+ match_tags(c);
t = ntag ? tag[sel] : alloc_tag(def.tag);
if(!c->tags[0])
diff --git a/cmd/wm/tag.c b/cmd/wm/tag.c
@@ -293,6 +293,7 @@ attach_totag(Tag *t, Client *c)
a = t->area[0];
else
a = t->area[t->sel];
+
reparent_client(c, c->framewin, c->rect.x, c->rect.y);
attach_toarea(a, c);
map_client(c);