From 37c079137c4ec6182db647c3df3a0e4e135fa0dd Mon Sep 17 00:00:00 2001 From: Ryan McBride Date: Fri, 23 Oct 2009 06:24:18 +0000 Subject: [PATCH] Remove over-eager optimization in focus_magic(). 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 | 3 --- 1 file changed, 3 deletions(-) diff --git a/scrotwm.c b/scrotwm.c index 04dbd0f..9a1f698 100644 --- 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) { -- 1.7.10.4