leavenotify also don't needs the check
Anselm R. Garbe arg@suckless.org
Fri, 19 Jan 2007 15:05:07 +0100
1 files changed,
2 insertions(+),
5 deletions(-)
jump to
M
event.c
→
event.c
@@ -234,9 +234,7 @@ if((c = getclient(ev->window)) && isvisible(c))
focus(c); else if(ev->window == root) { issel = True; - XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); - if(sel) - focus(sel); + focus(sel); } }@@ -273,8 +271,7 @@ leavenotify(XEvent *e) {
XCrossingEvent *ev = &e->xcrossing; if((ev->window == root) && !ev->same_screen) { - if(sel) - focus(NULL); + focus(NULL); issel = False; } }