mirror of git://git.suckless.org/dwm
leavenotify also don't needs the check
This commit is contained in:
parent
1e051d71f5
commit
201c56f6d3
7
event.c
7
event.c
|
@ -234,9 +234,7 @@ enternotify(XEvent *e) {
|
||||||
focus(c);
|
focus(c);
|
||||||
else if(ev->window == root) {
|
else if(ev->window == root) {
|
||||||
issel = True;
|
issel = True;
|
||||||
XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
|
focus(sel);
|
||||||
if(sel)
|
|
||||||
focus(sel);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -273,8 +271,7 @@ leavenotify(XEvent *e) {
|
||||||
XCrossingEvent *ev = &e->xcrossing;
|
XCrossingEvent *ev = &e->xcrossing;
|
||||||
|
|
||||||
if((ev->window == root) && !ev->same_screen) {
|
if((ev->window == root) && !ev->same_screen) {
|
||||||
if(sel)
|
focus(NULL);
|
||||||
focus(NULL);
|
|
||||||
issel = False;
|
issel = False;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue