]> Dogcows Code - chaz/openbox/commitdiff
grab the other device in Sync for button/key grabs
authorDana Jansens <danakj@orodu.net>
Mon, 7 Apr 2003 03:43:53 +0000 (03:43 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 7 Apr 2003 03:43:53 +0000 (03:43 +0000)
openbox/grab.c

index 830c00022f1a026258e3348a8df6fad4a1ae0f77..5e6209e0561cb7dc70326328e6e0148d73910d12 100644 (file)
@@ -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);
This page took 0.021772 seconds and 4 git commands to generate.