diff options
author | Po Lu <luangruo@yahoo.com> | 2021-11-29 12:39:16 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2021-11-29 12:39:16 +0800 |
commit | 390361cb24e376e8a00647a7625a06d6cdcf9b4d (patch) | |
tree | fcd9f8b40d2d6b7e5d6a345c181693374bf2c074 | |
parent | c8df4d1ca350e421adf49fb533627a6b1ef565bc (diff) | |
download | emacs-390361cb24e376e8a00647a7625a06d6cdcf9b4d.tar.gz |
Update XKB map on MappingNotify
* src/xterm.c (handle_one_xevent): Update XKB map when X
tells us the keyboard map has been updated.
-rw-r--r-- | src/xterm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c index 8045470bdd3..253e0eb20b0 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -9813,6 +9813,11 @@ handle_one_xevent (struct x_display_info *dpyinfo, x_find_modifier_meanings (dpyinfo); FALLTHROUGH; case MappingKeyboard: +#ifdef HAVE_XKB + if (dpyinfo->xkb_desc) + XkbGetUpdatedMap (dpyinfo->display, XkbAllComponentsMask, + dpyinfo->xkb_desc); +#endif XRefreshKeyboardMapping ((XMappingEvent *) &event->xmapping); } goto OTHER; |