emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 390361c: Update XKB map on MappingNotify


From: Po Lu
Subject: master 390361c: Update XKB map on MappingNotify
Date: Sun, 28 Nov 2021 23:40:08 -0500 (EST)

branch: master
commit 390361cb24e376e8a00647a7625a06d6cdcf9b4d
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Update XKB map on MappingNotify
    
    * src/xterm.c (handle_one_xevent): Update XKB map when X
    tells us the keyboard map has been updated.
---
 src/xterm.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/xterm.c b/src/xterm.c
index 8045470..253e0eb 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;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]