mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 12:32:05 +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 */
|
*result = NULL; /* ignored */
|
||||||
string_value = g_variant_get_string (value, NULL);
|
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.keycode,
|
||||||
&combo.modifiers))
|
NULL))
|
||||||
;
|
;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1684,8 +1685,7 @@ overlay_key_handler (GVariant *value,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (overlay_key_combo.keysym != combo.keysym ||
|
if (overlay_key_combo.keysym != combo.keysym ||
|
||||||
overlay_key_combo.keycode != combo.keycode ||
|
overlay_key_combo.keycode != combo.keycode)
|
||||||
overlay_key_combo.modifiers != combo.modifiers)
|
|
||||||
{
|
{
|
||||||
overlay_key_combo = combo;
|
overlay_key_combo = combo;
|
||||||
queue_changed (META_PREF_KEYBINDINGS);
|
queue_changed (META_PREF_KEYBINDINGS);
|
||||||
|
Loading…
Reference in New Issue
Block a user