leavenotify also don't needs the check
authorAnselm R. Garbe <arg@suckless.org>
Fri, 19 Jan 2007 15:05:07 +0100
changeset 707 c3c57faef013
parent 706 163fdca8f064
child 708 a2d568a5cdb8
leavenotify also don't needs the check
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;
 	}
 }