From: Dana Jansens Date: Mon, 7 Apr 2003 22:25:33 +0000 (+0000) Subject: rm debug prints X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=7613d4d8ecf519d83b0b11752e462f0011e628cf;p=chaz%2Fopenbox rm debug prints --- diff --git a/openbox/grab.c b/openbox/grab.c index 5e6209e0..97a1a3db 100644 --- a/openbox/grab.c +++ b/openbox/grab.c @@ -15,18 +15,12 @@ static unsigned int mask_list[MASK_LIST_SIZE]; void grab_keyboard(gboolean grab) { if (grab) { - if (kgrabs++ == 0) { - g_message("GRABBING KEYBOARD %d", kgrabs); + if (kgrabs++ == 0) XGrabKeyboard(ob_display, ob_root, 0, GrabModeAsync, GrabModeSync, event_lasttime); - } else - g_message("NOT GRABBING KEYBOARD %d", kgrabs); } else if (kgrabs > 0) { - if (--kgrabs == 0) { - g_message("UNGRABBING KEYBOARD %d", kgrabs); + if (--kgrabs == 0) XUngrabKeyboard(ob_display, event_lasttime); - } else - g_message("NOT UNGRABBING KEYBOARD %d", kgrabs); } }