emacs-diffs
[Top][All Lists]
Advanced

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

master 71eb1aac54: Add support for XI 2.4


From: Po Lu
Subject: master 71eb1aac54: Add support for XI 2.4
Date: Fri, 24 Dec 2021 21:40:00 -0500 (EST)

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

    Add support for XI 2.4
    
    We will be able to use touchpad (not touchscreen) gestures, such
    as pinch and swipe gestures after this change, but they are not
    yet exposed to Lisp.
    
    * src/xterm.c (x_term_init): Declare support for XI 2.4 if
    present.
---
 src/xterm.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/xterm.c b/src/xterm.c
index 42001023b3..6be7e2e9f9 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -14764,7 +14764,9 @@ x_term_init (Lisp_Object display_name, char 
*xrm_option, char *resource_name)
   dpyinfo->supports_xi2 = false;
   int rc;
   int major = 2;
-#ifdef XI_BarrierHit /* XInput 2.3 */
+#ifdef XI_GesturePinchBegin /* XInput 2.4 */
+  int minor = 4;
+#elif XI_BarrierHit /* XInput 2.3 */
   int minor = 3;
 #elif defined XI_TouchBegin /* XInput 2.2 */
   int minor = 2;



reply via email to

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