- if (XCheckTypedEvent(ob_display, EnterNotify, &e)) {
- XPutBackEvent(ob_display, &e);
+
+ /* 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");