aewl

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 diff
     1.1 --- a/event.c	Fri Jan 19 15:01:51 2007 +0100
     1.2 +++ b/event.c	Fri Jan 19 15:05:07 2007 +0100
     1.3 @@ -234,9 +234,7 @@
     1.4  		focus(c);
     1.5  	else if(ev->window == root) {
     1.6  		issel = True;
     1.7 -		XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
     1.8 -		if(sel)
     1.9 -			focus(sel);
    1.10 +		focus(sel);
    1.11  	}
    1.12  }
    1.13  
    1.14 @@ -273,8 +271,7 @@
    1.15  	XCrossingEvent *ev = &e->xcrossing;
    1.16  
    1.17  	if((ev->window == root) && !ev->same_screen) {
    1.18 -		if(sel)
    1.19 -			focus(NULL);
    1.20 +		focus(NULL);
    1.21  		issel = False;
    1.22  	}
    1.23  }