From: Dana Jansens Date: Sun, 21 Sep 2003 17:12:22 +0000 (+0000) Subject: export if an interactive grab is in progress X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=0aa7f70d91245d4a523c625d978063675ffc3ac7;p=chaz%2Fopenbox export if an interactive grab is in progress --- 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);