JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Revert previous commit, clearly I was on crack.
authorRyan McBride <mcbride@countersiege.com>
Wed, 28 Oct 2009 00:57:36 +0000 (00:57 +0000)
committerRyan McBride <mcbride@countersiege.com>
Wed, 28 Oct 2009 00:57:36 +0000 (00:57 +0000)
scrotwm.c

index 5d7a74b..6132292 100644 (file)
--- 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;
        }