diff options
author | arg@localhost.10kloc.org <unknown> | 2006-08-21 17:35:37 +0200 |
---|---|---|
committer | arg@localhost.10kloc.org <unknown> | 2006-08-21 17:35:37 +0200 |
commit | 950a1ab5afe3e94dfe78e3ff2216bb9f444d5148 (patch) | |
tree | cd1a6d420853a7375c5f8d0630554ce0ea89e184 /client.c | |
parent | 1b9fe55025f84a8430b4be5822784551746eee8d (diff) | |
download | dwm-950a1ab5afe3e94dfe78e3ff2216bb9f444d5148.tar.gz dwm-950a1ab5afe3e94dfe78e3ff2216bb9f444d5148.tar.bz2 dwm-950a1ab5afe3e94dfe78e3ff2216bb9f444d5148.zip |
windows which have set transient_for hint inherit the transient_for window tags now
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -214,6 +214,7 @@ killclient(Arg *arg) void manage(Window w, XWindowAttributes *wa) { + unsigned int i; Client *c, *tc; Window trans; XSetWindowAttributes twa; @@ -261,7 +262,11 @@ manage(Window w, XWindowAttributes *wa) grabbutton(c, Button2, MODKEY); grabbutton(c, Button3, MODKEY); - settags(c); + if((tc = getclient(trans))) /* inherit tags */ + for(i = 0; i < ntags; i++) + c->tags[i] = tc->tags[i]; + else + settags(c); if(!c->isfloat) c->isfloat = trans || (c->maxw && c->minw && |