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 /event.c | |
parent | c86f131681182258208ef97e81206ccc44e718ee (diff) |
implemented NET_ACTIVE_WINDOW support
Diffstat (limited to 'event.c')
-rw-r--r-- | event.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -146,6 +146,18 @@ buttonpress(XEvent *e) } static void +clientmessage(XEvent *e) +{ + Client *c; + XClientMessageEvent *ev = &e->xclient; + + if(ev->message_type == netatom[NetActiveWindow]) { + if((c = getclient(ev->window)) && c->tags[tsel]) + focus(c); + } +} + +static void configurerequest(XEvent *e) { Client *c; @@ -339,6 +351,7 @@ unmapnotify(XEvent *e) void (*handler[LASTEvent]) (XEvent *) = { [ButtonPress] = buttonpress, + [ClientMessage] = clientmessage, [ConfigureRequest] = configurerequest, [DestroyNotify] = destroynotify, [EnterNotify] = enternotify, |