JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Remove over-eager optimization in focus_magic().
authorRyan McBride <mcbride@countersiege.com>
Fri, 23 Oct 2009 06:24:18 +0000 (06:24 +0000)
committerRyan McBride <mcbride@countersiege.com>
Fri, 23 Oct 2009 06:24:18 +0000 (06:24 +0000)
This win == win->ws->focus check makes scrotwm forget the correct
focus across workspace changes. Unnecessary focus changes are prevented
by the XGetInputFocus() check anyways.

scrotwm.c

index 04dbd0f..9a1f698 100644 (file)
--- a/scrotwm.c
+++ b/scrotwm.c
@@ -3776,9 +3776,6 @@ focus_magic(struct ws_win *win, int do_trans)
        if (win == NULL)
                return;
 
-       if (win == win->ws->focus)
-               return;
-
        if (do_trans == SWM_F_TRANSIENT && win->child_trans) {
                /* win = parent & has a transient so focus on that */
                if (win->java) {