From: Po Lu Date: Tue, 15 Feb 2022 02:23:49 +0000 (+0800) Subject: * src/xterm.c (init_xterm): Use more reliable method to disable XI2. X-Git-Tag: emacs-29.0.90~2308 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f6811ff8e2c2a3a4fe2a5fa40fcc230289450991;p=emacs.git * src/xterm.c (init_xterm): Use more reliable method to disable XI2. --- 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