XSync(ob_display, FALSE);
- ob_debug("Trying to ignore\n");
-
/* count the events */
while (TRUE) {
e = g_new(XEvent, 1);
ObWindow *win;
win = g_hash_table_lookup(window_map, &e->xany.window);
- if (win && WINDOW_IS_CLIENT(win)) {
- ob_debug("skipping enter event on 0x%lx\n", e->xany.window);
+ if (win && WINDOW_IS_CLIENT(win))
++ignore_enter_focus;
- } else
- ob_debug("NOT skipping enter event on 0x%lx\n",
- e->xany.window);
saved = g_slist_append(saved, e);
} else {
False, GRAB_PTR_MASK, GrabModeAsync,
GrabModeAsync, FALSE,
ob_cursor(cur), event_lasttime) == Success;
- ob_debug("GRABBING\n");
if (!ret)
--pgrabs;
} else
} else if (pgrabs > 0) {
if (--pgrabs == 0) {
XUngrabPointer(ob_display, event_lasttime);
-
- ob_debug("UNGRABBING\n");
- event_ignore_queued_enters();
}
ret = TRUE;
}