diff --git a/openbox/keyboard.c b/openbox/keyboard.c index 7a74b427..14994213 100644 --- a/openbox/keyboard.c +++ b/openbox/keyboard.c @@ -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) { diff --git a/openbox/keyboard.h b/openbox/keyboard.h index be181bd7..6ea1881d 100644 --- a/openbox/keyboard.h +++ b/openbox/keyboard.h @@ -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);