]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/xterm.c (init_xterm): Use more reliable method to disable XI2.
authorPo Lu <luangruo@yahoo.com>
Tue, 15 Feb 2022 02:23:49 +0000 (10:23 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 15 Feb 2022 02:23:49 +0000 (10:23 +0800)
src/xterm.c

index 9c24a074e3d44a523974771c79a17932282f24f3..60d87ccbf0962d7c94f0ceff55ad28299fb288f6 100644 (file)
@@ -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