summaryrefslogtreecommitdiff
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-05-29 11:35:20 +0200
committerAnselm R. Garbe <arg@suckless.org>2007-05-29 11:35:20 +0200
commit199a6016114875656102d11e79a80939bfaff3b3 (patch)
tree2ad54798ecf25479959e50e611eb2163247745ec /event.c
parent492c6f10fcf9acf74d84eb3fe005ecf2dd42611a (diff)
applied anydot's 3 minor patches, thank you anydot
Diffstat (limited to 'event.c')
-rw-r--r--event.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/event.c b/event.c
index 2773c6f3..f9d2e0cf 100644
--- a/event.c
+++ b/event.c
@@ -242,11 +242,11 @@ enternotify(XEvent *e) {
if(ev->mode != NotifyNormal || ev->detail == NotifyInferior)
return;
- if((c = getclient(ev->window)) && isvisible(c))
+ if(c = getclient(ev->window))
focus(c);
else if(ev->window == root) {
selscreen = True;
- focustopvisible();
+ focus(NULL);
}
}