aboutsummaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorAnselm R.Garbe <arg@10ksloc.org>2006-08-08 17:08:45 +0200
committerAnselm R.Garbe <arg@10ksloc.org>2006-08-08 17:08:45 +0200
commit92e55c7c53cb808b584982ac8f6d69112d713fab (patch)
tree6e8ad48b16b5baad43c0e5460deafc2d7dc6b741 /client.c
parentc86f131681182258208ef97e81206ccc44e718ee (diff)
downloaddwm-92e55c7c53cb808b584982ac8f6d69112d713fab.tar.gz
implemented NET_ACTIVE_WINDOW support
Diffstat (limited to 'client.c')
-rw-r--r--client.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/client.c b/client.c
index f92df83..9b91ab6 100644
--- a/client.c
+++ b/client.c
@@ -58,6 +58,8 @@ focus(Client *c)
drawtitle(c);
XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
XSync(dpy, False);
+ XChangeProperty(dpy, root, netatom[NetActiveWindow], XA_WINDOW, 32,
+ PropModeReplace, (unsigned char *)&c->win, 1);
while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
}
@@ -459,6 +461,9 @@ unmanage(Client *c)
arrange(NULL);
if(sel)
focus(sel);
+ else
+ XChangeProperty(dpy, root, netatom[NetActiveWindow], XA_WINDOW, 32,
+ PropModeReplace, (unsigned char *)NULL, 1);
}
void
remember that computers suck.