diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-04-25 14:13:32 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-04-25 14:13:32 +0000 |
| commit | c8983c42a7c27321d18825f2a130c15e29046f7b (patch) | |
| tree | 0fc366336c569f7f434a6609d57030af8874a58e /openbox/grab.c | |
| parent | 05560c929ba196c7f0abd8332ccb19650b2cf316 (diff) | |
playing a bit with grabs
make mouse clicks cancel alt-tab and stuff if you arent dragging during the alt-tab
Diffstat (limited to 'openbox/grab.c')
| -rw-r--r-- | openbox/grab.c | 9 |
1 files changed, 2 insertions, 7 deletions
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; |
