windows which have set transient_for hint inherit the transient_for window tags now

pull/1/head
arg@localhost.10kloc.org 19 years ago
parent 1b9fe55025
commit 950a1ab5af
  1. 5
      client.c
  2. 2
      config.arg.h

@ -214,6 +214,7 @@ killclient(Arg *arg)
void void
manage(Window w, XWindowAttributes *wa) manage(Window w, XWindowAttributes *wa)
{ {
unsigned int i;
Client *c, *tc; Client *c, *tc;
Window trans; Window trans;
XSetWindowAttributes twa; XSetWindowAttributes twa;
@ -261,6 +262,10 @@ manage(Window w, XWindowAttributes *wa)
grabbutton(c, Button2, MODKEY); grabbutton(c, Button2, MODKEY);
grabbutton(c, Button3, MODKEY); grabbutton(c, Button3, MODKEY);
if((tc = getclient(trans))) /* inherit tags */
for(i = 0; i < ntags; i++)
c->tags[i] = tc->tags[i];
else
settags(c); settags(c);
if(!c->isfloat) if(!c->isfloat)
c->isfloat = trans c->isfloat = trans

@ -21,7 +21,7 @@ static Key key[] = { \
{ MODKEY|ShiftMask, XK_Return, spawn, \ { MODKEY|ShiftMask, XK_Return, spawn, \
{ .cmd = "exec uxterm -bg '#dddddd' -fg '#000000' -cr '#000000' +sb -fn '"FONT"'" } }, \ { .cmd = "exec uxterm -bg '#dddddd' -fg '#000000' -cr '#000000' +sb -fn '"FONT"'" } }, \
{ MODKEY, XK_p, spawn, \ { MODKEY, XK_p, spawn, \
{ .cmd = "exec `ls -lL /usr/bin /usr/local/bin 2>/dev/null | " \ { .cmd = "exec `ls -lL /usr/bin /usr/X11R6/bin /usr/local/bin 2>/dev/null | " \
"awk 'NF>2 && $1 ~ /^[^d].*x/ {print $NF}' | sort -u | dmenu`" } }, \ "awk 'NF>2 && $1 ~ /^[^d].*x/ {print $NF}' | sort -u | dmenu`" } }, \
{ MODKEY, XK_j, focusnext, { 0 } }, \ { MODKEY, XK_j, focusnext, { 0 } }, \
{ MODKEY, XK_k, focusprev, { 0 } }, \ { MODKEY, XK_k, focusprev, { 0 } }, \

Loading…
Cancel
Save