Repair bug#65068 on Emacs 29

* src/xterm.c (x_term_init): Disable ControlFallback library
control wherever present.  (bug#65068)

Do not merge to master.
This commit is contained in:
Po Lu 2023-08-26 18:12:24 +08:00
parent 39d2285bdc
commit a6cb8e3a1f

View file

@ -30178,6 +30178,16 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name)
XkbNewKeyboardNotifyMask | XkbMapNotifyMask, XkbNewKeyboardNotifyMask | XkbMapNotifyMask,
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 #endif
#ifdef HAVE_XFIXES #ifdef HAVE_XFIXES