changeset 707:c3c57faef013

leavenotify also don't needs the check
author Anselm R. Garbe <arg@suckless.org>
date Fri, 19 Jan 2007 15:05:07 +0100
parents 163fdca8f064
children a2d568a5cdb8
files event.c
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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;
 	}
 }