keybindings: Fix unsetting of overlay-key
Commit 802c1ac4275 fixed updating the overlay key on settings changes, but missed the case where the setting was set to an empty value to disable the overlay key altogether. https://bugzilla.gnome.org/show_bug.cgi?id=682993
This commit is contained in:
parent
b422b6f06e
commit
6a32fa9452
@ -292,6 +292,10 @@ reload_keycodes (MetaDisplay *display)
|
||||
display->overlay_key_combo.keycode =
|
||||
keysym_to_keycode (display, display->overlay_key_combo.keysym);
|
||||
}
|
||||
else
|
||||
{
|
||||
display->overlay_key_combo.keycode = 0;
|
||||
}
|
||||
|
||||
if (display->key_bindings)
|
||||
{
|
||||
@ -469,11 +473,7 @@ rebuild_special_bindings (MetaDisplay *display)
|
||||
MetaKeyCombo combo;
|
||||
|
||||
meta_prefs_get_overlay_binding (&combo);
|
||||
|
||||
if (combo.keysym != None || combo.keycode != 0)
|
||||
{
|
||||
display->overlay_key_combo = combo;
|
||||
}
|
||||
display->overlay_key_combo = combo;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
x
Reference in New Issue
Block a user