mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 20:12:06 +00:00
prefs: Don't parse modifiers for the overlay-key
We don't actually accept modifiers for the overlay key.
This commit is contained in:
parent
e4e00b383e
commit
7bccd4f22f
@ -1672,9 +1672,10 @@ overlay_key_handler (GVariant *value,
|
||||
*result = NULL; /* ignored */
|
||||
string_value = g_variant_get_string (value, NULL);
|
||||
|
||||
if (string_value && meta_parse_accelerator (string_value, &combo.keysym,
|
||||
if (string_value && meta_parse_accelerator (string_value,
|
||||
&combo.keysym,
|
||||
&combo.keycode,
|
||||
&combo.modifiers))
|
||||
NULL))
|
||||
;
|
||||
else
|
||||
{
|
||||
@ -1684,8 +1685,7 @@ overlay_key_handler (GVariant *value,
|
||||
}
|
||||
|
||||
if (overlay_key_combo.keysym != combo.keysym ||
|
||||
overlay_key_combo.keycode != combo.keycode ||
|
||||
overlay_key_combo.modifiers != combo.modifiers)
|
||||
overlay_key_combo.keycode != combo.keycode)
|
||||
{
|
||||
overlay_key_combo = combo;
|
||||
queue_changed (META_PREF_KEYBINDINGS);
|
||||
|
Loading…
Reference in New Issue
Block a user