projects
/
suckless
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e051d7
)
leavenotify also don't needs the check
author
Anselm R. Garbe
<arg@suckless.org>
Fri, 19 Jan 2007 14:05:07 +0000
(15:05 +0100)
committer
Anselm R. Garbe
<arg@suckless.org>
Fri, 19 Jan 2007 14:05:07 +0000
(15:05 +0100)
event.c
patch
|
blob
|
history
diff --git
a/event.c
b/event.c
index 20ab5992a85361eba680895402cf2216055aeb48..0133889cdeb2662100c093119bda3c3a7e7b39ce 100644
(file)
--- 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;
}
}