]> Dogcows Code - chaz/openbox/commitdiff
eat enter events on desktop switch so that our own policy can be applied
authorDana Jansens <danakj@orodu.net>
Mon, 22 Sep 2003 04:16:02 +0000 (04:16 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 22 Sep 2003 04:16:02 +0000 (04:16 +0000)
openbox/screen.c

index 9ce25dde546da3669067dc0996ad73ce88582bff..7c3cb8d01abdeed04889be315ad68dfb896d018d 100644 (file)
@@ -28,6 +28,7 @@
 #include "screen.h"
 #include "client.h"
 #include "frame.h"
+#include "event.h"
 #include "focus.h"
 #include "popup.h"
 #include "extensions.h"
@@ -453,8 +454,9 @@ void screen_set_desktop(guint num)
         }
     }
 
-    if (!focus_client)
-        focus_fallback(OB_FOCUS_FALLBACK_NOFOCUS);
+    event_ignore_queued_enters();
+    
+    focus_fallback(OB_FOCUS_FALLBACK_NOFOCUS);
 }
 
 static void get_row_col(guint d, guint *r, guint *c)
This page took 0.025745 seconds and 4 git commands to generate.