emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master f6811ff8e2: * src/xterm.c (init_xterm): Use more reliable method


From: Po Lu
Subject: master f6811ff8e2: * src/xterm.c (init_xterm): Use more reliable method to disable XI2.
Date: Mon, 14 Feb 2022 21:24:22 -0500 (EST)

branch: master
commit f6811ff8e2c2a3a4fe2a5fa40fcc230289450991
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    * 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 9c24a074e3..60d87ccbf0 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]