summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2015-01-06 18:43:12 -0800
committerJasper St. Pierre <jstpierre@mecheye.net>2015-01-06 18:50:30 -0800
commita3b8dcbd04f553b433dabe3e39364ee7d93f03d6 (patch)
treeefc23a2ba61164bc68964c4fd60882b13316e278
parent3ff8b0051d038b1835c7c4d4e009cf13ad17a636 (diff)
downloadmutter-a3b8dcbd04f553b433dabe3e39364ee7d93f03d6.tar.gz
keybindings: Apply the same fix for keycodes to the GrabAccelerator API
-rw-r--r--src/core/keybindings.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/keybindings.c b/src/core/keybindings.c
index cd3f6f776..cfe5b8902 100644
--- a/src/core/keybindings.c
+++ b/src/core/keybindings.c
@@ -1423,7 +1423,9 @@ meta_display_grab_accelerator (MetaDisplay *display,
}
devirtualize_modifiers (keys, modifiers, &mask);
- keycode = get_first_keycode_for_keysym (keys, keysym);
+
+ if (keysym != 0)
+ keycode = get_first_keycode_for_keysym (keys, keysym);
if (keycode == 0)
return META_KEYBINDING_ACTION_NONE;