]> git.eshelyaron.com Git - emacs.git/commitdiff
Update XKB map on MappingNotify
authorPo Lu <luangruo@yahoo.com>
Mon, 29 Nov 2021 04:39:16 +0000 (12:39 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 29 Nov 2021 04:39:16 +0000 (12:39 +0800)
* src/xterm.c (handle_one_xevent): Update XKB map when X
tells us the keyboard map has been updated.

src/xterm.c

index 8045470bdd3190be272d4144b55e0acf98e32428..253e0eb20b01829205c984801f42584c74289657 100644 (file)
@@ -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;