remove debug prints
This commit is contained in:
parent
cd4377366c
commit
e2f3c00224
2 changed files with 1 additions and 11 deletions
|
@ -1198,8 +1198,6 @@ void event_ignore_queued_enters()
|
||||||
|
|
||||||
XSync(ob_display, FALSE);
|
XSync(ob_display, FALSE);
|
||||||
|
|
||||||
ob_debug("Trying to ignore\n");
|
|
||||||
|
|
||||||
/* count the events */
|
/* count the events */
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
e = g_new(XEvent, 1);
|
e = g_new(XEvent, 1);
|
||||||
|
@ -1207,12 +1205,8 @@ void event_ignore_queued_enters()
|
||||||
ObWindow *win;
|
ObWindow *win;
|
||||||
|
|
||||||
win = g_hash_table_lookup(window_map, &e->xany.window);
|
win = g_hash_table_lookup(window_map, &e->xany.window);
|
||||||
if (win && WINDOW_IS_CLIENT(win)) {
|
if (win && WINDOW_IS_CLIENT(win))
|
||||||
ob_debug("skipping enter event on 0x%lx\n", e->xany.window);
|
|
||||||
++ignore_enter_focus;
|
++ignore_enter_focus;
|
||||||
} else
|
|
||||||
ob_debug("NOT skipping enter event on 0x%lx\n",
|
|
||||||
e->xany.window);
|
|
||||||
|
|
||||||
saved = g_slist_append(saved, e);
|
saved = g_slist_append(saved, e);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -77,7 +77,6 @@ gboolean grab_pointer(gboolean grab, ObCursor cur)
|
||||||
False, GRAB_PTR_MASK, GrabModeAsync,
|
False, GRAB_PTR_MASK, GrabModeAsync,
|
||||||
GrabModeAsync, FALSE,
|
GrabModeAsync, FALSE,
|
||||||
ob_cursor(cur), event_lasttime) == Success;
|
ob_cursor(cur), event_lasttime) == Success;
|
||||||
ob_debug("GRABBING\n");
|
|
||||||
if (!ret)
|
if (!ret)
|
||||||
--pgrabs;
|
--pgrabs;
|
||||||
} else
|
} else
|
||||||
|
@ -85,9 +84,6 @@ gboolean grab_pointer(gboolean grab, ObCursor cur)
|
||||||
} else if (pgrabs > 0) {
|
} else if (pgrabs > 0) {
|
||||||
if (--pgrabs == 0) {
|
if (--pgrabs == 0) {
|
||||||
XUngrabPointer(ob_display, event_lasttime);
|
XUngrabPointer(ob_display, event_lasttime);
|
||||||
|
|
||||||
ob_debug("UNGRABBING\n");
|
|
||||||
event_ignore_queued_enters();
|
|
||||||
}
|
}
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue