]> Dogcows Code - chaz/openbox/blobdiff - openbox/grab.c
can drag slit-apps around in the slit
[chaz/openbox] / openbox / grab.c
index 6af21eb29415524e83f33e11641ff46ba7746afb..656f6eb401d43ea0be9e5075124e540ba959a382 100644 (file)
@@ -96,14 +96,19 @@ void grab_shutdown()
     while (grab_server(FALSE));
 }
 
-void grab_button(guint button, guint state, Window win, guint mask,
-                 int pointer_mode)
+void grab_button_full(guint button, guint state, Window win, guint mask,
+                      int pointer_mode, Cursor cursor)
 {
     guint i;
 
     for (i = 0; i < MASK_LIST_SIZE; ++i)
         XGrabButton(ob_display, button, state | mask_list[i], win, FALSE, mask,
-                    pointer_mode, GrabModeSync, None, None);
+                    pointer_mode, GrabModeSync, None, cursor);
+}
+
+void grab_button(guint button, guint state, Window win, guint mask)
+{
+    grab_button_full(button, state, win, mask, GrabModeAsync, None);
 }
 
 void ungrab_button(guint button, guint state, Window win)
This page took 0.02099 seconds and 4 git commands to generate.