diff options
| author | Mikael Magnusson <mikachu@comhem.se> | 2006-08-16 17:38:41 +0000 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@comhem.se> | 2006-08-16 17:38:41 +0000 |
| commit | 1ffd89672fa62cdf2c9e707fdf53e6d8a0080b6f (patch) | |
| tree | 4c686850fa21ad1bd80fcdcfdd81d03d8aaef6be /openbox/keyboard.c | |
| parent | 5b288939ab50d32731729239670142d3376429b8 (diff) | |
don't allow inventive users to open the menu while in an interactive grab (ie changing focus or desktop)
Diffstat (limited to 'openbox/keyboard.c')
| -rw-r--r-- | openbox/keyboard.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openbox/keyboard.c b/openbox/keyboard.c index 7f930f8f..09b99bcc 100644 --- a/openbox/keyboard.c +++ b/openbox/keyboard.c @@ -288,6 +288,11 @@ void keyboard_event(ObClient *client, const XEvent *e) } } +gboolean keyboard_interactively_grabbed() +{ + return !!interactive_states; +} + void keyboard_startup(gboolean reconfig) { grab_keys(TRUE); |
