From ab3d6a7dfe76d9857f2fc621034359a2a0bf09df Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Mon, 14 May 2007 11:54:30 +0200 Subject: applied dfenze cleanups, fixed some comments in dwm.h --- event.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'event.c') 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(); } } -- cgit v1.2.3-13-gbd6f