From: Ryan McBride Date: Fri, 23 Oct 2009 06:24:18 +0000 (+0000) Subject: Remove over-eager optimization in focus_magic(). X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=37c079137c4ec6182db647c3df3a0e4e135fa0dd;p=spectrwm.git 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. --- 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) {