From 6a14e403fe73d1addb6958bcaced4c41d9153206 Mon Sep 17 00:00:00 2001 From: Ryan McBride Date: Wed, 28 Oct 2009 00:57:36 +0000 Subject: [PATCH] Revert previous commit, clearly I was on crack. --- scrotwm.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; } -- 1.7.10.4