From 71eb1aac54e2143d40c16a9f67e76200f63e6561 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sat, 25 Dec 2021 10:38:23 +0800 Subject: [PATCH] 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 42001023b3b..6be7e2e9f95 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; -- 2.39.2