From a6cb8e3a1fabef341de5a53e6525fc0263dd7499 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sat, 26 Aug 2023 18:12:24 +0800 Subject: [PATCH] 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. --- src/xterm.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/xterm.c b/src/xterm.c index 5840b15bcb7..709705fc19e 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -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 -- 2.39.2