aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2022-02-15 10:23:49 +0800
committerPo Lu2022-02-15 10:23:49 +0800
commitf6811ff8e2c2a3a4fe2a5fa40fcc230289450991 (patch)
treea7201cd6e937d422599a37bcea3adb30a9f61149 /src
parentbb33446f2a4a2540fe3fcbc07d9fadacb024f963 (diff)
downloademacs-f6811ff8e2c2a3a4fe2a5fa40fcc230289450991.tar.gz
emacs-f6811ff8e2c2a3a4fe2a5fa40fcc230289450991.zip
* src/xterm.c (init_xterm): Use more reliable method to disable XI2.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 9c24a074e3d..60d87ccbf09 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -16952,7 +16952,11 @@ init_xterm (void)
16952 /* Emacs can handle only core input events when built without XI2 16952 /* Emacs can handle only core input events when built without XI2
16953 support, so make sure Gtk doesn't use Xinput or Xinput2 16953 support, so make sure Gtk doesn't use Xinput or Xinput2
16954 extensions. */ 16954 extensions. */
16955#ifndef HAVE_GTK3
16955 xputenv ("GDK_CORE_DEVICE_EVENTS=1"); 16956 xputenv ("GDK_CORE_DEVICE_EVENTS=1");
16957#else
16958 gdk_disable_multidevice ();
16959#endif
16956#endif 16960#endif
16957} 16961}
16958#endif 16962#endif