From f6811ff8e2c2a3a4fe2a5fa40fcc230289450991 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Tue, 15 Feb 2022 10:23:49 +0800 Subject: [PATCH] * src/xterm.c (init_xterm): Use more reliable method to disable XI2. --- src/xterm.c | 4 ++++ 1 file changed, 4 insertions(+) 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) /* Emacs can handle only core input events when built without XI2 support, so make sure Gtk doesn't use Xinput or Xinput2 extensions. */ +#ifndef HAVE_GTK3 xputenv ("GDK_CORE_DEVICE_EVENTS=1"); +#else + gdk_disable_multidevice (); +#endif #endif } #endif -- 2.39.5