From 7690e00f42fca7444c47bde19be491f617ee8ec7 Mon Sep 17 00:00:00 2001 From: bubbleguuum Date: Tue, 6 Jan 2026 15:12:03 +0100 Subject: [PATCH] x11: fix compilation failure on older XInput2 Older versions of XInput2 do not declare struct XIGesturePinchEvent in XInput2.h, causing compilation failure in SDL_x11xinput2.c Check for XIGesturePinchEvent in the test for enabling SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_GESTURE --- cmake/sdlchecks.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/sdlchecks.cmake b/cmake/sdlchecks.cmake index 281c5f63d0..8df17dd32b 100644 --- a/cmake/sdlchecks.cmake +++ b/cmake/sdlchecks.cmake @@ -457,7 +457,7 @@ macro(CheckX11) #include #include int event_type = XI_GesturePinchBegin; - XITouchClassInfo *t; + XIGesturePinchEvent *t; Status XIAllowTouchEvents(Display *a,int b,unsigned int c,Window d,int f) { return (Status)0; }