From: Ryan McBride Date: Wed, 28 Oct 2009 00:57:36 +0000 (+0000) Subject: Revert previous commit, clearly I was on crack. X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=6a14e403fe73d1addb6958bcaced4c41d9153206;p=spectrwm.git Revert previous commit, clearly I was on crack. --- diff --git a/scrotwm.c b/scrotwm.c index 5d7a74b..6132292 100644 --- a/scrotwm.c +++ b/scrotwm.c @@ -3954,8 +3954,11 @@ enternotify(XEvent *e) * feature */ - /* Focus is set when the window being entered already has focus. */ - if (ev->focus) { + /* + * state is set when we are switching workspaces and focus is set when + * scrotwm launches via a restart + */ + if (ev->state || ev->focus) { DNPRINTF(SWM_D_EVENT, "ignoring enternotify: focus\n"); return; }