SDL_SetCursor should not skip focus check

This commit is contained in:
expikr
2025-04-28 11:39:22 +08:00
committed by Sam Lantinga
parent cbf44700d8
commit 6c172e5220

View File

@@ -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;