From: Po Lu Date: Sat, 25 Dec 2021 02:38:23 +0000 (+0800) Subject: Add support for XI 2.4 X-Git-Tag: emacs-29.0.90~3464 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=71eb1aac54e2143d40c16a9f67e76200f63e6561;p=emacs.git 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. --- 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;