diff --git a/src/events/SDL_mouse.c b/src/events/SDL_mouse.c index 832173cd73..476959eccc 100644 --- a/src/events/SDL_mouse.c +++ b/src/events/SDL_mouse.c @@ -1541,7 +1541,7 @@ int SDL_SetCursor(SDL_Cursor *cursor) } } - if (cursor && mouse->cursor_shown && !mouse->relative_mode) { + if (cursor && (!mouse->focus || (mouse->cursor_shown && !mouse->relative_mode))) { if (mouse->ShowCursor) { mouse->ShowCursor(cursor); }