diff options
author | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-08 17:08:45 +0200 |
---|---|---|
committer | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-08 17:08:45 +0200 |
commit | 92e55c7c53cb808b584982ac8f6d69112d713fab (patch) | |
tree | 6e8ad48b16b5baad43c0e5460deafc2d7dc6b741 /client.c | |
parent | c86f131681182258208ef97e81206ccc44e718ee (diff) | |
download | dwm-92e55c7c53cb808b584982ac8f6d69112d713fab.tar.gz |
implemented NET_ACTIVE_WINDOW support
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |