]> git.eshelyaron.com Git - emacs.git/commitdiff
Repair bug#65068 on Emacs 29
authorPo Lu <luangruo@yahoo.com>
Sat, 26 Aug 2023 10:12:24 +0000 (18:12 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 26 Aug 2023 10:12:24 +0000 (18:12 +0800)
* src/xterm.c (x_term_init): Disable ControlFallback library
control wherever present.  (bug#65068)

Do not merge to master.

src/xterm.c

index 5840b15bcb70c94c428b2d50997c68a9dfc81b9d..709705fc19e12f402247d4f9b856cb00c2a1099d 100644 (file)
@@ -30178,6 +30178,16 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name)
                       XkbNewKeyboardNotifyMask | XkbMapNotifyMask,
                       XkbNewKeyboardNotifyMask | XkbMapNotifyMask);
     }
+
+  /* XFree86 extends XKBlib with a new Xlib control `ControlFallback',
+     which enables a search for symbols designating ASCII characters
+     within inactive groups during keycode translation when
+     ControlMask is set.  Users find this behavior gratuitous, so
+     disable it if present.  */
+
+#ifdef XkbLC_ControlFallback
+  XkbSetXlibControls (dpyinfo->display, XkbLC_ControlFallback, 0);
+#endif /* XkbLC_ControlFallback */
 #endif
 
 #ifdef HAVE_XFIXES