From c8983c42a7c27321d18825f2a130c15e29046f7b Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 25 Apr 2007 14:13:32 +0000 Subject: playing a bit with grabs make mouse clicks cancel alt-tab and stuff if you arent dragging during the alt-tab --- openbox/grab.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'openbox/grab.c') diff --git a/openbox/grab.c b/openbox/grab.c index e7bd41d9..eaf65f6b 100644 --- a/openbox/grab.c +++ b/openbox/grab.c @@ -166,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; -- cgit v1.2.3