pinosaur
/
dwm.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
leavenotify also don't needs the check
[dwm.git]
/
event.c
diff --git
a/event.c
b/event.c
index
20ab599
..
0133889
100644
(file)
--- a/
event.c
+++ b/
event.c
@@
-234,9
+234,7
@@
enternotify(XEvent *e) {
focus(c);
else if(ev->window == root) {
issel = True;
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) {
XCrossingEvent *ev = &e->xcrossing;
if((ev->window == root) && !ev->same_screen) {
- if(sel)
- focus(NULL);
+ focus(NULL);
issel = False;
}
}
issel = False;
}
}