From 32a92abf7578ea93d85741b7c89a0958082aa9ee Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 23 Jul 2007 21:32:31 -0400 Subject: move the code for tracking what extensions are available on the display into the libobt --- openbox/grab.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbox/grab.c') diff --git a/openbox/grab.c b/openbox/grab.c index d84ef94f..cfbbbe1a 100644 --- a/openbox/grab.c +++ b/openbox/grab.c @@ -180,7 +180,7 @@ void grab_button_full(guint button, guint state, Window win, guint mask, XGrabButton(ob_display, button, state | mask_list[i], win, False, mask, pointer_mode, GrabModeAsync, None, ob_cursor(cur)); obt_display_ignore_errors(ob_display, FALSE); - if (obt_display_error_occured()) + if (obt_display_error_occured) ob_debug("Failed to grab button %d modifiers %d", button, state); } @@ -202,7 +202,7 @@ void grab_key(guint keycode, guint state, Window win, gint keyboard_mode) XGrabKey(ob_display, keycode, state | mask_list[i], win, FALSE, GrabModeAsync, keyboard_mode); obt_display_ignore_errors(ob_display, FALSE); - if (obt_display_error_occured()) + if (obt_display_error_occured) ob_debug("Failed to grab keycode %d modifiers %d", keycode, state); } -- cgit v1.2.3