twindows which have set transient_for hint inherit the transient_for window tags now - dwm - [fork] customized build of dwm, the dynamic window manager
(HTM) git clone git://src.adamsgaard.dk/dwm
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 950a1ab5afe3e94dfe78e3ff2216bb9f444d5148
(DIR) parent 1b9fe55025f84a8430b4be5822784551746eee8d
(HTM) Author: arg@localhost.10kloc.org <unknown>
Date: Mon, 21 Aug 2006 17:35:37 +0200
windows which have set transient_for hint inherit the transient_for window tags now
Diffstat:
M client.c | 7 ++++++-
M config.arg.h | 2 +-
2 files changed, 7 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/client.c b/client.c
t@@ -214,6 +214,7 @@ killclient(Arg *arg)
void
manage(Window w, XWindowAttributes *wa)
{
+ unsigned int i;
Client *c, *tc;
Window trans;
XSetWindowAttributes twa;
t@@ -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 &&
(DIR) diff --git a/config.arg.h b/config.arg.h
t@@ -21,7 +21,7 @@ static Key key[] = { \
{ MODKEY|ShiftMask, XK_Return, spawn, \
{ .cmd = "exec uxterm -bg '#dddddd' -fg '#000000' -cr '#000000' +sb -fn '"FONT"'" } }, \
{ 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`" } }, \
{ MODKEY, XK_j, focusnext, { 0 } }, \
{ MODKEY, XK_k, focusprev, { 0 } }, \