selmon optimisation is needed
authorAnselm R Garbe <anselm@garbe.us>
Thu, 1 Apr 2010 18:39:24 +0000 (19:39 +0100)
committerAnselm R Garbe <anselm@garbe.us>
Thu, 1 Apr 2010 18:39:24 +0000 (19:39 +0100)
dwm.c

diff --git a/dwm.c b/dwm.c
index b1f77cc..ac534a8 100644 (file)
--- a/dwm.c
+++ b/dwm.c
@@ -815,10 +815,6 @@ void
 focus(Client *c) {
        if(!c || !ISVISIBLE(c))
                for(c = selmon->stack; c && !ISVISIBLE(c); c = c->snext);
-       if(c && c == selmon->sel) {
-               D fprintf(stderr, "focus, optimising focus away\n");
-               return;
-       }
        if(selmon->sel)
                unfocus(selmon->sel);
        if(c) {