aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2021-11-29 12:39:16 +0800
committerPo Lu2021-11-29 12:39:16 +0800
commit390361cb24e376e8a00647a7625a06d6cdcf9b4d (patch)
treefcd9f8b40d2d6b7e5d6a345c181693374bf2c074 /src
parentc8df4d1ca350e421adf49fb533627a6b1ef565bc (diff)
downloademacs-390361cb24e376e8a00647a7625a06d6cdcf9b4d.tar.gz
emacs-390361cb24e376e8a00647a7625a06d6cdcf9b4d.zip
Update XKB map on MappingNotify
* src/xterm.c (handle_one_xevent): Update XKB map when X tells us the keyboard map has been updated.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c5
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,
9813 x_find_modifier_meanings (dpyinfo); 9813 x_find_modifier_meanings (dpyinfo);
9814 FALLTHROUGH; 9814 FALLTHROUGH;
9815 case MappingKeyboard: 9815 case MappingKeyboard:
9816#ifdef HAVE_XKB
9817 if (dpyinfo->xkb_desc)
9818 XkbGetUpdatedMap (dpyinfo->display, XkbAllComponentsMask,
9819 dpyinfo->xkb_desc);
9820#endif
9816 XRefreshKeyboardMapping ((XMappingEvent *) &event->xmapping); 9821 XRefreshKeyboardMapping ((XMappingEvent *) &event->xmapping);
9817 } 9822 }
9818 goto OTHER; 9823 goto OTHER;