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);
|
||||
|
||||
ob_debug("Trying to ignore\n");
|
||||
|
||||
/* count the events */
|
||||
while (TRUE) {
|
||||
e = g_new(XEvent, 1);
|
||||
|
@ -1207,12 +1205,8 @@ void event_ignore_queued_enters()
|
|||
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 {
|
||||
|
|
|
@ -77,7 +77,6 @@ gboolean grab_pointer(gboolean grab, ObCursor cur)
|
|||
False, GRAB_PTR_MASK, GrabModeAsync,
|
||||
GrabModeAsync, FALSE,
|
||||
ob_cursor(cur), event_lasttime) == Success;
|
||||
ob_debug("GRABBING\n");
|
||||
if (!ret)
|
||||
--pgrabs;
|
||||
} else
|
||||
|
@ -85,9 +84,6 @@ gboolean grab_pointer(gboolean grab, ObCursor cur)
|
|||
} else if (pgrabs > 0) {
|
||||
if (--pgrabs == 0) {
|
||||
XUngrabPointer(ob_display, event_lasttime);
|
||||
|
||||
ob_debug("UNGRABBING\n");
|
||||
event_ignore_queued_enters();
|
||||
}
|
||||
ret = TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue