diff --git a/src/video/x11/SDL_x11xinput2.c b/src/video/x11/SDL_x11xinput2.c index c654c7fa1..94f7599a5 100644 --- a/src/video/x11/SDL_x11xinput2.c +++ b/src/video/x11/SDL_x11xinput2.c @@ -220,6 +220,10 @@ X11_InitXinput2Multitouch(_THIS) { void X11_Xinput2SelectTouch(_THIS, SDL_Window *window) { #if SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH + if (!X11_Xinput2IsMultitouchSupported()) { + return; + } + SDL_VideoData *data = (SDL_VideoData *) _this->driverdata; XIEventMask eventmask; unsigned char mask[3] = { 0,0,0 };