From 7613d4d8ecf519d83b0b11752e462f0011e628cf Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 7 Apr 2003 22:25:33 +0000 Subject: [PATCH] rm debug prints --- openbox/grab.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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); } } -- 2.45.2