summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-09-22 04:16:02 +0000
committerDana Jansens <danakj@orodu.net>2003-09-22 04:16:02 +0000
commitf791f9a35e016b52295fa733dc21f9d64de6ead1 (patch)
tree7d50f763aa230e78eaff4913fd870be999335792
parentf68066aa63edd6404dc8a598bd9e1f66d8d3844d (diff)
eat enter events on desktop switch so that our own policy can be applied
-rw-r--r--openbox/screen.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/openbox/screen.c b/openbox/screen.c
index 9ce25dde..7c3cb8d0 100644
--- a/openbox/screen.c
+++ b/openbox/screen.c
@@ -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)