From 6c172e52208e31bd6ca5b5291ce923121b5d67a5 Mon Sep 17 00:00:00 2001 From: expikr <77922942+expikr@users.noreply.github.com> Date: Mon, 28 Apr 2025 11:39:22 +0800 Subject: [PATCH] SDL_SetCursor should not skip focus check --- src/events/SDL_mouse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/events/SDL_mouse.c b/src/events/SDL_mouse.c index ee869f9e51..2b5abf436f 100644 --- a/src/events/SDL_mouse.c +++ b/src/events/SDL_mouse.c @@ -1627,7 +1627,9 @@ bool SDL_SetCursor(SDL_Cursor *cursor) } } mouse->cur_cursor = cursor; - } else if (mouse->focus) { + } + + if (mouse->focus) { cursor = mouse->cur_cursor; } else { cursor = mouse->def_cursor;