sync before removing all the enter events. this way it actually catches them
authorDana Jansens <danakj@orodu.net>
Sat, 6 Sep 2003 09:10:43 +0000 (09:10 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 6 Sep 2003 09:10:43 +0000 (09:10 +0000)
openbox/screen.c

index 38ad897..53dce6e 100644 (file)
@@ -430,6 +430,7 @@ void screen_set_desktop(guint num)
         }
     }
 
+    XSync(ob_display, FALSE);
     /* focus the last focused window on the desktop, and ignore enter events
        from the switch so it doesnt mess with the focus */
     while (XCheckTypedEvent(ob_display, EnterNotify, &e));