* src/xterm.c (init_xterm): Use more reliable method to disable XI2.

This commit is contained in:
Po Lu 2022-02-15 10:23:49 +08:00
parent bb33446f2a
commit f6811ff8e2

View 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