grab the pointer Async for key grabs, lets key bindings like <execute>xkill</execute...
authorDana Jansens <danakj@orodu.net>
Sun, 31 Aug 2003 17:32:28 +0000 (17:32 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 31 Aug 2003 17:32:28 +0000 (17:32 +0000)
openbox/grab.c

index 1737476..599fb68 100644 (file)
@@ -152,7 +152,7 @@ void grab_key(guint keycode, guint state, Window win, int keyboard_mode)
     xerror_occured = FALSE;
     for (i = 0; i < MASK_LIST_SIZE; ++i)
         XGrabKey(ob_display, keycode, state | mask_list[i], win, FALSE,
-                 GrabModeSync, keyboard_mode);
+                 GrabModeAsync, keyboard_mode);
     xerror_set_ignore(FALSE);
     if (xerror_occured)
         g_warning("failed to grab keycode %d modifiers %d", keycode, state);