+static void chew_enter_events()
+{
+ XEvent e;
+
+ /* XXX... not anymore
+ skip the next enter event from the desktop switch so focus
+ doesn't skip briefly to what was under the pointer */
+
+ /* kill all enter events from prior to the desktop switch, we
+ aren't interested in them if we have found our own target
+ to focus.
+ XXX this is rude to other plugins...can this be done
+ better? count the events in the queue? */
+ while (XCheckTypedEvent(ob_display, EnterNotify, &e));
+/*
+ {
+ XPutBackEvent(ob_display, &e);
+ g_message("skip");
+ ++skip_enter;
+ }
+*/
+}
+