From 6c8acc079a9cbb40245e5df4b50b3f8b9c17cf83 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 26 Jul 2007 20:03:31 -0400 Subject: add prop.[ch] to the libobt, but they are not used yet. add a global obt_display which obt can use, and the application. --- openbox/grab.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'openbox/grab.c') diff --git a/openbox/grab.c b/openbox/grab.c index cfbbbe1a..fea2b62e 100644 --- a/openbox/grab.c +++ b/openbox/grab.c @@ -175,11 +175,11 @@ void grab_button_full(guint button, guint state, Window win, guint mask, guint i; /* can get BadAccess from these */ - obt_display_ignore_errors(ob_display, TRUE); + obt_display_ignore_errors(TRUE); for (i = 0; i < MASK_LIST_SIZE; ++i) 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); + obt_display_ignore_errors(FALSE); if (obt_display_error_occured) ob_debug("Failed to grab button %d modifiers %d", button, state); } @@ -197,11 +197,11 @@ void grab_key(guint keycode, guint state, Window win, gint keyboard_mode) guint i; /* can get BadAccess' from these */ - obt_display_ignore_errors(ob_display, TRUE); + obt_display_ignore_errors(TRUE); for (i = 0; i < MASK_LIST_SIZE; ++i) XGrabKey(ob_display, keycode, state | mask_list[i], win, FALSE, GrabModeAsync, keyboard_mode); - obt_display_ignore_errors(ob_display, FALSE); + obt_display_ignore_errors(FALSE); if (obt_display_error_occured) ob_debug("Failed to grab keycode %d modifiers %d", keycode, state); } -- cgit v1.2.3