Commit 5aeae2fc authored by Alberts Muktupāvels's avatar Alberts Muktupāvels
Browse files

keybindings: don't grab keybindings without modmask

parent 339f86b0
......@@ -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",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment