diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-04-07 03:43:53 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-04-07 03:43:53 +0000 |
| commit | 1f775fdd864715abb622070a9b4dd38341d6da79 (patch) | |
| tree | dbc0fb8f0fbf2505eced39ac0e3c999a0615646c /openbox/grab.c | |
| parent | a484ba5e1953c62a4696010bfd34b91770915d28 (diff) | |
grab the other device in Sync for button/key grabs
Diffstat (limited to 'openbox/grab.c')
| -rw-r--r-- | openbox/grab.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbox/grab.c b/openbox/grab.c index 830c0002..5e6209e0 100644 --- a/openbox/grab.c +++ b/openbox/grab.c @@ -88,7 +88,7 @@ void grab_button(guint button, guint state, Window win, guint mask, for (i = 0; i < MASK_LIST_SIZE; ++i) XGrabButton(ob_display, button, state | mask_list[i], win, FALSE, mask, - pointer_mode, GrabModeAsync, None, None); + pointer_mode, GrabModeSync, None, None); } void ungrab_button(guint button, guint state, Window win) @@ -107,7 +107,7 @@ void grab_key(guint keycode, guint state, int keyboard_mode) xerror_occured = FALSE; for (i = 0; i < MASK_LIST_SIZE; ++i) XGrabKey(ob_display, keycode, state | mask_list[i], ob_root, FALSE, - GrabModeAsync, keyboard_mode); + GrabModeSync, keyboard_mode); xerror_set_ignore(FALSE); if (xerror_occured) g_warning("failed to grab keycode %d modifiers %d", keycode, state); |
