# HG changeset patch # User Anselm R. Garbe # Date 1169215507 -3600 # Node ID c3c57faef013170c4b2fbd184431f6422d226d34 # Parent 163fdca8f06477bd3d7b4e17f0627901be8137e7 leavenotify also don't needs the check diff -r 163fdca8f064 -r c3c57faef013 event.c --- a/event.c Fri Jan 19 15:01:51 2007 +0100 +++ b/event.c Fri Jan 19 15:05:07 2007 +0100 @@ -234,9 +234,7 @@ focus(c); else if(ev->window == root) { issel = True; - XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); - if(sel) - focus(sel); + focus(sel); } } @@ -273,8 +271,7 @@ XCrossingEvent *ev = &e->xcrossing; if((ev->window == root) && !ev->same_screen) { - if(sel) - focus(NULL); + focus(NULL); issel = False; } }