Skip to content

Commit 7690e00

Browse files
bubbleguuumslouken
authored andcommitted
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
1 parent bc68c1c commit 7690e00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/sdlchecks.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ macro(CheckX11)
457457
#include <X11/Xproto.h>
458458
#include <X11/extensions/XInput2.h>
459459
int event_type = XI_GesturePinchBegin;
460-
XITouchClassInfo *t;
460+
XIGesturePinchEvent *t;
461461
Status XIAllowTouchEvents(Display *a,int b,unsigned int c,Window d,int f) {
462462
return (Status)0;
463463
}

0 commit comments

Comments
 (0)