summaryrefslogtreecommitdiffstats
path: root/event.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--event.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/event.c b/event.c
index 2773c6f..f9d2e0c 100644
--- a/event.c
+++ b/event.c
@@ -242,11 +242,11 @@ enternotify(XEvent *e) {
242 242
243 if(ev->mode != NotifyNormal || ev->detail == NotifyInferior) 243 if(ev->mode != NotifyNormal || ev->detail == NotifyInferior)
244 return; 244 return;
245 if((c = getclient(ev->window)) && isvisible(c)) 245 if(c = getclient(ev->window))
246 focus(c); 246 focus(c);
247 else if(ev->window == root) { 247 else if(ev->window == root) {
248 selscreen = True; 248 selscreen = True;
249 focustopvisible(); 249 focus(NULL);
250 } 250 }
251} 251}
252 252