summaryrefslogtreecommitdiffstats
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
parentdeciding for focus(NULL); (diff)
downloaddwm-201c56f6d36e7f895c465f534fdb90e3d9e4ca18.tar.gz
dwm-201c56f6d36e7f895c465f534fdb90e3d9e4ca18.zip
leavenotify also don't needs the check
Diffstat (limited to '')
-rw-r--r--event.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/event.c b/event.c
index 20ab599..0133889 100644
--- a/event.c
+++ b/event.c
@@ -234,9 +234,7 @@ enternotify(XEvent *e) {
234 focus(c); 234 focus(c);
235 else if(ev->window == root) { 235 else if(ev->window == root) {
236 issel = True; 236 issel = True;
237 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); 237 focus(sel);
238 if(sel)
239 focus(sel);
240 } 238 }
241} 239}
242 240
@@ -273,8 +271,7 @@ leavenotify(XEvent *e) {
273 XCrossingEvent *ev = &e->xcrossing; 271 XCrossingEvent *ev = &e->xcrossing;
274 272
275 if((ev->window == root) && !ev->same_screen) { 273 if((ev->window == root) && !ev->same_screen) {
276 if(sel) 274 focus(NULL);
277 focus(NULL);
278 issel = False; 275 issel = False;
279 } 276 }
280} 277}