X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Fgrab.c;h=5df654c62a6c3dc6eb6179341b5dc562ed558432;hb=506fa94dc74c34ee90af19353184029a76d206e4;hp=549b0f1f0b1d055e3302a1b7ca5e421f232a3cfe;hpb=62f1473c651a564391e53548e0cb7daa5303776d;p=chaz%2Fopenbox diff --git a/openbox/grab.c b/openbox/grab.c index 549b0f1f..5df654c6 100644 --- a/openbox/grab.c +++ b/openbox/grab.c @@ -30,6 +30,7 @@ gboolean grab_keyboard(gboolean grab) XUngrabKeyboard(ob_display, event_lasttime); ret = TRUE; } + return ret; } @@ -110,8 +111,8 @@ void grab_startup() void grab_shutdown() { while (grab_keyboard(FALSE)); - while (grab_pointer(FALSE, None)); - while (grab_pointer_window(FALSE, None, None)); + while (grab_pointer(FALSE, OB_CURSOR_NONE)); + while (grab_pointer_window(FALSE, OB_CURSOR_NONE, None)); while (grab_server(FALSE)); } @@ -132,7 +133,7 @@ void grab_button_full(guint button, guint state, Window win, guint mask, void grab_button(guint button, guint state, Window win, guint mask) { - grab_button_full(button, state, win, mask, GrabModeAsync, None); + grab_button_full(button, state, win, mask, GrabModeAsync, OB_CURSOR_NONE); } void ungrab_button(guint button, guint state, Window win) @@ -151,7 +152,7 @@ void grab_key(guint keycode, guint state, Window win, int keyboard_mode) xerror_occured = FALSE; for (i = 0; i < MASK_LIST_SIZE; ++i) XGrabKey(ob_display, keycode, state | mask_list[i], win, FALSE, - GrabModeSync, keyboard_mode); + GrabModeAsync, keyboard_mode); xerror_set_ignore(FALSE); if (xerror_occured) g_warning("failed to grab keycode %d modifiers %d", keycode, state);