X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Fgrab.c;h=eaf65f6be9765b8ec539158b86500df581a75027;hb=ec850570ef973677cbb7663ed64eea45d616bdec;hp=a382c1adc31a7427094214872cb324a15d2fe0ec;hpb=a488360f48abbfd6e67576a1844d792b28e6065c;p=chaz%2Fopenbox diff --git a/openbox/grab.c b/openbox/grab.c index a382c1ad..eaf65f6b 100644 --- a/openbox/grab.c +++ b/openbox/grab.c @@ -27,8 +27,7 @@ #include #include -#define GRAB_PTR_MASK (ButtonPressMask | ButtonReleaseMask | \ - PointerMotionMask | PointerMotionHintMask) +#define GRAB_PTR_MASK (ButtonPressMask | ButtonReleaseMask | PointerMotionMask) #define GRAB_KEY_MASK (KeyPressMask | KeyReleaseMask) #define MASK_LIST_SIZE 8 @@ -167,18 +166,13 @@ void grab_button_full(guint button, guint state, Window win, guint mask, xerror_set_ignore(TRUE); /* can get BadAccess from these */ xerror_occured = FALSE; for (i = 0; i < MASK_LIST_SIZE; ++i) - XGrabButton(ob_display, button, state | mask_list[i], win, FALSE, mask, - pointer_mode, GrabModeSync, None, ob_cursor(cur)); + XGrabButton(ob_display, button, state | mask_list[i], win, False, mask, + pointer_mode, GrabModeAsync, None, ob_cursor(cur)); xerror_set_ignore(FALSE); if (xerror_occured) ob_debug("Failed to grab button %d modifiers %d", button, state); } -void grab_button(guint button, guint state, Window win, guint mask) -{ - grab_button_full(button, state, win, mask, GrabModeAsync, OB_CURSOR_NONE); -} - void ungrab_button(guint button, guint state, Window win) { guint i;