mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
Fix updating overlay key keycode when keymap changes
overlay_key_combo needs the same treatment as other keycodes on a change - we should always recompute it if we have a keysym not a keycode, and not only if the keycode hasn't already been computed.
This commit is contained in:
parent
c6be05f9d7
commit
b031543f5a
@ -233,9 +233,8 @@ reload_keycodes (MetaDisplay *display)
|
||||
{
|
||||
meta_topic (META_DEBUG_KEYBINDINGS,
|
||||
"Reloading keycodes for binding tables\n");
|
||||
|
||||
if (display->overlay_key_combo.keysym
|
||||
&& display->overlay_key_combo.keycode == 0)
|
||||
|
||||
if (display->overlay_key_combo.keysym != 0)
|
||||
{
|
||||
display->overlay_key_combo.keycode = XKeysymToKeycode (
|
||||
display->xdisplay, display->overlay_key_combo.keysym);
|
||||
|
Loading…
Reference in New Issue
Block a user