[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 664da3e936: Add an option to disable XI2 for debugging purposes
From: |
Po Lu |
Subject: |
master 664da3e936: Add an option to disable XI2 for debugging purposes |
Date: |
Thu, 21 Apr 2022 21:07:29 -0400 (EDT) |
branch: master
commit 664da3e936010b5025b485b67969156ccadb0b44
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Add an option to disable XI2 for debugging purposes
* src/xterm.c (handle_one_xevent): Accept resource
`disableInputExtension', which means to skip setting up the X
input extension.
---
src/xterm.c | 26 +++++++++++++++++++++++---
1 file changed, 23 insertions(+), 3 deletions(-)
diff --git a/src/xterm.c b/src/xterm.c
index 69e9302973..adfe3059d1 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -23009,9 +23009,9 @@ x_term_init (Lisp_Object display_name, char
*xrm_option, char *resource_name)
SynchronizeResize,
Qnil, Qnil);
- if (STRINGP (value) &&
- (!strcmp (SSDATA (value), "false")
- || !strcmp (SSDATA (value), "off")))
+ if (STRINGP (value)
+ && (!strcmp (SSDATA (value), "false")
+ || !strcmp (SSDATA (value), "off")))
dpyinfo->xsync_supported_p = false;
}
#endif
@@ -23136,6 +23136,23 @@ x_term_init (Lisp_Object display_name, char
*xrm_option, char *resource_name)
int major = 2;
int xi_first_event, xi_first_error;
+#ifndef HAVE_GTK3
+ {
+ AUTO_STRING (disableInputExtension, "disableInputExtension");
+ AUTO_STRING (DisableInputExtension, "DisableInputExtension");
+
+ Lisp_Object value = gui_display_get_resource (dpyinfo,
+ disableInputExtension,
+ DisableInputExtension,
+ Qnil, Qnil);
+
+ if (STRINGP (value)
+ && (!strcmp (SSDATA (value), "on")
+ || !strcmp (SSDATA (value), "true")))
+ goto skip_xi_setup;
+ }
+#endif
+
#ifdef HAVE_XINPUT2_4
int minor = 4;
#elif defined HAVE_XINPUT2_3 /* XInput 2.3 */
@@ -23231,6 +23248,9 @@ x_term_init (Lisp_Object display_name, char
*xrm_option, char *resource_name)
}
dpyinfo->xi2_version = minor;
+#ifndef HAVE_GTK3
+ skip_xi_setup:
+#endif
#endif
#ifdef HAVE_XRANDR
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 664da3e936: Add an option to disable XI2 for debugging purposes,
Po Lu <=