diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2015-04-09 02:05:01 +0300 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2015-04-09 02:05:01 +0300 |
commit | 5aeae2fcc6763839333372086ee2825d40f0d7b4 (patch) | |
tree | a391f89ad7b9f064a65823b570d80e38d3b50cfe | |
parent | 339f86b0314aec5bdc0b47f6c165211ae106e854 (diff) | |
download | metacity-5aeae2fcc6763839333372086ee2825d40f0d7b4.tar.gz |
keybindings: don't grab keybindings without modmask
-rw-r--r-- | src/core/keybindings.c | 9 |
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", |