diff --git a/src/video/x11/SDL_x11mouse.c b/src/video/x11/SDL_x11mouse.c index 786e219eb..978a30584 100644 --- a/src/video/x11/SDL_x11mouse.c +++ b/src/video/x11/SDL_x11mouse.c @@ -416,6 +416,9 @@ static Uint32 X11_GetGlobalMouseState(int *x, int *y) #if !SDL_VIDEO_DRIVER_X11_XINPUT2 videodata->global_mouse_changed = SDL_TRUE; +#else + if (!SDL_X11_HAVE_XINPUT2) + videodata->global_mouse_changed = SDL_TRUE; #endif /* check if we have this cached since XInput last saw the mouse move. */