eat enter events on desktop switch so that our own policy can be applied

This commit is contained in:
Dana Jansens 2003-09-22 04:16:02 +00:00
parent f68066aa63
commit f791f9a35e

View 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)