summaryrefslogtreecommitdiff
path: root/src/core/keybindings.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/keybindings.c')
-rw-r--r--src/core/keybindings.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/keybindings.c b/src/core/keybindings.c
index ea332b97..f06a53c7 100644
--- a/src/core/keybindings.c
+++ b/src/core/keybindings.c
@@ -699,6 +699,15 @@ meta_change_keygrab (MetaDisplay *display,
* X provides no better way to do this.
*/
+ if (modmask == 0)
+ {
+ meta_topic (META_DEBUG_KEYBINDINGS,
+ "Will not %s keybinding %s without modmask\n",
+ grab ? "grab" : "ungrab",
+ keysym_to_string (keysym));
+ return;
+ }
+
meta_topic (META_DEBUG_KEYBINDINGS,
"%s keybinding %s keycode %d mask 0x%x on 0x%lx\n",
grab ? "Grabbing" : "Ungrabbing",