diff options
author | Po Lu <luangruo@yahoo.com> | 2022-01-16 13:46:39 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-01-16 13:46:39 +0800 |
commit | e2b9f3347e7f30e7185c5d07bc722ea0178f4dbe (patch) | |
tree | a133bca8f58a3e96cf6195cdfac1e710cb8a21e8 | |
parent | c59e870cceb2f40040d6c02da7658c58054ab3ad (diff) | |
download | emacs-e2b9f3347e7f30e7185c5d07bc722ea0178f4dbe.tar.gz |
Update modifier meanings even if an xkb_desc was not available
* src/xterm.c (handle_one_event): Always update modifiers after
the keyboard mapping is refreshed.
-rw-r--r-- | src/xterm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c index 5798ea3eebc..4b5358ed658 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -11526,8 +11526,6 @@ handle_one_xevent (struct x_display_info *dpyinfo, XkbFreeKeyboard (dpyinfo->xkb_desc, XkbAllComponentsMask, True); dpyinfo->xkb_desc = NULL; } - - x_find_modifier_meanings (dpyinfo); } else { @@ -11545,6 +11543,7 @@ handle_one_xevent (struct x_display_info *dpyinfo, } XkbRefreshKeyboardMapping (&xkbevent->map); + x_find_modifier_meanings (dpyinfo); } } #endif |