about summary refs log tree commit diff stats
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-05-14 11:54:30 +0200
committerAnselm R. Garbe <arg@suckless.org>2007-05-14 11:54:30 +0200
commitab3d6a7dfe76d9857f2fc621034359a2a0bf09df (patch)
tree9738e466d2ea2b0e1107084b159f8a1b93f271af /event.c
parentc67dbb28e47b03eca0c7faddcf7c9862c41694b7 (diff)
downloaddwm-ab3d6a7dfe76d9857f2fc621034359a2a0bf09df.tar.gz
applied dfenze cleanups, fixed some comments in dwm.h
Diffstat (limited to 'event.c')
-rw-r--r--event.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/event.c b/event.c
index 12746f6..4c0e4e7 100644
--- a/event.c
+++ b/event.c
@@ -247,8 +247,7 @@ enternotify(XEvent *e) {
 		focus(c);
 	else if(ev->window == root) {
 		selscreen = True;
-		for(c = stack; c && !isvisible(c); c = c->snext);
-		focus(c);
+		focustopvisible();
 	}
 }