dwm-meillo
changeset 320:30b447bad2e5
windows which have set transient_for hint inherit the transient_for window tags now
author | arg@localhost.10kloc.org |
---|---|
date | Mon, 21 Aug 2006 17:35:37 +0200 |
parents | 94d2d7658673 |
children | d5a1dc5370c8 |
files | client.c config.arg.h |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line diff
1.1 --- a/client.c Mon Aug 21 17:41:09 2006 +0200 1.2 +++ b/client.c Mon Aug 21 17:35:37 2006 +0200 1.3 @@ -214,6 +214,7 @@ 1.4 void 1.5 manage(Window w, XWindowAttributes *wa) 1.6 { 1.7 + unsigned int i; 1.8 Client *c, *tc; 1.9 Window trans; 1.10 XSetWindowAttributes twa; 1.11 @@ -261,7 +262,11 @@ 1.12 grabbutton(c, Button2, MODKEY); 1.13 grabbutton(c, Button3, MODKEY); 1.14 1.15 - settags(c); 1.16 + if((tc = getclient(trans))) /* inherit tags */ 1.17 + for(i = 0; i < ntags; i++) 1.18 + c->tags[i] = tc->tags[i]; 1.19 + else 1.20 + settags(c); 1.21 if(!c->isfloat) 1.22 c->isfloat = trans 1.23 || (c->maxw && c->minw &&
2.1 --- a/config.arg.h Mon Aug 21 17:41:09 2006 +0200 2.2 +++ b/config.arg.h Mon Aug 21 17:35:37 2006 +0200 2.3 @@ -21,7 +21,7 @@ 2.4 { MODKEY|ShiftMask, XK_Return, spawn, \ 2.5 { .cmd = "exec uxterm -bg '#dddddd' -fg '#000000' -cr '#000000' +sb -fn '"FONT"'" } }, \ 2.6 { MODKEY, XK_p, spawn, \ 2.7 - { .cmd = "exec `ls -lL /usr/bin /usr/local/bin 2>/dev/null | " \ 2.8 + { .cmd = "exec `ls -lL /usr/bin /usr/X11R6/bin /usr/local/bin 2>/dev/null | " \ 2.9 "awk 'NF>2 && $1 ~ /^[^d].*x/ {print $NF}' | sort -u | dmenu`" } }, \ 2.10 { MODKEY, XK_j, focusnext, { 0 } }, \ 2.11 { MODKEY, XK_k, focusprev, { 0 } }, \