]> Dogcows Code - chaz/openbox/blobdiff - openbox/grab.c
grab the pointer Async for key grabs, lets key bindings like <execute>xkill</execute...
[chaz/openbox] / openbox / grab.c
index 2ef51fef4cacdb375785c5ccad308cdae18139d3..599fb6815a19444712725e124b4b8139bf70e792 100644 (file)
@@ -31,8 +31,6 @@ gboolean grab_keyboard(gboolean grab)
         ret = TRUE;
     }
 
-    g_message("grabs: %d", kgrabs);
-
     return ret;
 }
 
@@ -154,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);
This page took 0.026766 seconds and 4 git commands to generate.