Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
windows which have set transient_for hint inherit the transient_for window tags now
[dwm.git]
/
client.c
diff --git
a/client.c
b/client.c
index
8b98c19
..
eb23452
100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-214,6
+214,7
@@
killclient(Arg *arg)
void
manage(Window w, XWindowAttributes *wa)
{
void
manage(Window w, XWindowAttributes *wa)
{
+ unsigned int i;
Client *c, *tc;
Window trans;
XSetWindowAttributes twa;
Client *c, *tc;
Window trans;
XSetWindowAttributes twa;
@@
-261,7
+262,11
@@
manage(Window w, XWindowAttributes *wa)
grabbutton(c, Button2, MODKEY);
grabbutton(c, Button3, MODKEY);
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 &&
if(!c->isfloat)
c->isfloat = trans
|| (c->maxw && c->minw &&