From 92e55c7c53cb808b584982ac8f6d69112d713fab Mon Sep 17 00:00:00 2001 From: "Anselm R.Garbe" Date: Tue, 8 Aug 2006 17:08:45 +0200 Subject: implemented NET_ACTIVE_WINDOW support --- client.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'client.c') 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 -- cgit v1.2.3-13-gbd6f