export if an interactive grab is in progress
authorDana Jansens <danakj@orodu.net>
Sun, 21 Sep 2003 17:12:22 +0000 (17:12 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 21 Sep 2003 17:12:22 +0000 (17:12 +0000)
openbox/keyboard.c
openbox/keyboard.h

index 7a74b42..1499421 100644 (file)
@@ -155,6 +155,11 @@ gboolean keyboard_bind(GList *keylist, ObAction *action)
     return TRUE;
 }
 
+gboolean keyboard_interactive_grab_in_progress()
+{
+    return interactive_states != NULL;
+}
+
 void keyboard_interactive_grab(guint state, ObClient *client,
                                ObAction *action)
 {
index be181bd..6ea1881 100644 (file)
@@ -43,6 +43,7 @@ void keyboard_interactive_grab(guint state, struct _ObClient *client,
                                struct _ObAction *action);
 gboolean keyboard_process_interactive_grab(const XEvent *e,
                                            struct _ObClient **client);
+gboolean keyboard_interactive_grab_in_progress();
 
 void keyboard_grab_for_client(struct _ObClient *c, gboolean grab);