comparison event.c @ 709:6c2fcf88dd9f

this variant is known to work, but focus() is ugly - we need in general a better way to handle multihead, this issel-stuff looks awkward (maybe it might be a good idea to set sel to NULL but to introduce a Client *revert which is set if a screen is unfocused, have to think about it further).
author Anselm R. Garbe <arg@suckless.org>
date Mon, 22 Jan 2007 10:35:58 +0100
parents a2d568a5cdb8
children b40134b93de3
comparison
equal deleted inserted replaced
708:a2d568a5cdb8 709:6c2fcf88dd9f
267 static void 267 static void
268 leavenotify(XEvent *e) { 268 leavenotify(XEvent *e) {
269 XCrossingEvent *ev = &e->xcrossing; 269 XCrossingEvent *ev = &e->xcrossing;
270 270
271 if((ev->window == root) && !ev->same_screen) { 271 if((ev->window == root) && !ev->same_screen) {
272 focus(NULL);
273 issel = False; 272 issel = False;
273 focus(sel);
274 } 274 }
275 } 275 }
276 276
277 static void 277 static void
278 mappingnotify(XEvent *e) { 278 mappingnotify(XEvent *e) {