summaryrefslogtreecommitdiff
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-01-19 15:05:07 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-01-19 15:05:07 +0100
commit201c56f6d36e7f895c465f534fdb90e3d9e4ca18 (patch)
tree25c63748256f145a149800a9d6546d5fd07d71e4 /event.c
parent1e051d71f509ce0c658170e936896b58b9065f90 (diff)
leavenotify also don't needs the check
Diffstat (limited to 'event.c')
-rw-r--r--event.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/event.c b/event.c
index 20ab5992..0133889c 100644
--- a/event.c
+++ b/event.c
@@ -234,9 +234,7 @@ enternotify(XEvent *e) {
focus(c);
else if(ev->window == root) {
issel = True;
- XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
- if(sel)
- focus(sel);
+ focus(sel);
}
}
@@ -273,8 +271,7 @@ leavenotify(XEvent *e) {
XCrossingEvent *ev = &e->xcrossing;
if((ev->window == root) && !ev->same_screen) {
- if(sel)
- focus(NULL);
+ focus(NULL);
issel = False;
}
}