diff --git a/src/video/kmsdrm/SDL_kmsdrmmouse.c b/src/video/kmsdrm/SDL_kmsdrmmouse.c index 8de629143..abef62c30 100644 --- a/src/video/kmsdrm/SDL_kmsdrmmouse.c +++ b/src/video/kmsdrm/SDL_kmsdrmmouse.c @@ -466,6 +466,8 @@ KMSDRM_InitMouse(_THIS) mouse->FreeCursor = KMSDRM_FreeCursor; mouse->WarpMouse = KMSDRM_WarpMouse; mouse->WarpMouseGlobal = KMSDRM_WarpMouseGlobal; + /* No desktop on KMSDRM, so just return the normal mouse state. */ + mouse->GetGlobalMouseState = SDL_GetMouseState; SDL_SetDefaultCursor(KMSDRM_CreateDefaultCursor()); }