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:
Owen W. Taylor 2010-11-22 16:10:34 -05:00
parent c6be05f9d7
commit b031543f5a

View File

@ -234,8 +234,7 @@ 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);