Mercurial > aewl
comparison event.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 | 7b63c375d28c |
children | b92bbc2487c9 |
comparison
equal
deleted
inserted
replaced
228:ebb1fd90f633 | 229:f4f5d000ce7a |
---|---|
140 higher(c); | 140 higher(c); |
141 resizemouse(c); | 141 resizemouse(c); |
142 } | 142 } |
143 break; | 143 break; |
144 } | 144 } |
145 } | |
146 } | |
147 | |
148 static void | |
149 clientmessage(XEvent *e) | |
150 { | |
151 Client *c; | |
152 XClientMessageEvent *ev = &e->xclient; | |
153 | |
154 if(ev->message_type == netatom[NetActiveWindow]) { | |
155 if((c = getclient(ev->window)) && c->tags[tsel]) | |
156 focus(c); | |
145 } | 157 } |
146 } | 158 } |
147 | 159 |
148 static void | 160 static void |
149 configurerequest(XEvent *e) | 161 configurerequest(XEvent *e) |
337 | 349 |
338 /* extern */ | 350 /* extern */ |
339 | 351 |
340 void (*handler[LASTEvent]) (XEvent *) = { | 352 void (*handler[LASTEvent]) (XEvent *) = { |
341 [ButtonPress] = buttonpress, | 353 [ButtonPress] = buttonpress, |
354 [ClientMessage] = clientmessage, | |
342 [ConfigureRequest] = configurerequest, | 355 [ConfigureRequest] = configurerequest, |
343 [DestroyNotify] = destroynotify, | 356 [DestroyNotify] = destroynotify, |
344 [EnterNotify] = enternotify, | 357 [EnterNotify] = enternotify, |
345 [LeaveNotify] = leavenotify, | 358 [LeaveNotify] = leavenotify, |
346 [Expose] = expose, | 359 [Expose] = expose, |