Mercurial > aewl
comparison client.c @ 229:f4f5d000ce7a
implemented NET_ACTIVE_WINDOW support
author | Anselm R.Garbe <arg@10ksloc.org> |
---|---|
date | Tue, 08 Aug 2006 17:08:45 +0200 |
parents | f5b952e566da |
children | b92bbc2487c9 |
comparison
equal
deleted
inserted
replaced
228:ebb1fd90f633 | 229:f4f5d000ce7a |
---|---|
56 if(old && old != c) | 56 if(old && old != c) |
57 drawtitle(old); | 57 drawtitle(old); |
58 drawtitle(c); | 58 drawtitle(c); |
59 XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); | 59 XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); |
60 XSync(dpy, False); | 60 XSync(dpy, False); |
61 XChangeProperty(dpy, root, netatom[NetActiveWindow], XA_WINDOW, 32, | |
62 PropModeReplace, (unsigned char *)&c->win, 1); | |
61 while(XCheckMaskEvent(dpy, EnterWindowMask, &ev)); | 63 while(XCheckMaskEvent(dpy, EnterWindowMask, &ev)); |
62 } | 64 } |
63 | 65 |
64 void | 66 void |
65 focusnext(Arg *arg) | 67 focusnext(Arg *arg) |
457 XSetErrorHandler(xerror); | 459 XSetErrorHandler(xerror); |
458 XUngrabServer(dpy); | 460 XUngrabServer(dpy); |
459 arrange(NULL); | 461 arrange(NULL); |
460 if(sel) | 462 if(sel) |
461 focus(sel); | 463 focus(sel); |
464 else | |
465 XChangeProperty(dpy, root, netatom[NetActiveWindow], XA_WINDOW, 32, | |
466 PropModeReplace, (unsigned char *)NULL, 1); | |
462 } | 467 } |
463 | 468 |
464 void | 469 void |
465 zoom(Arg *arg) | 470 zoom(Arg *arg) |
466 { | 471 { |