mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-28 11:57:24 +08:00
SDL_SetCursor should not skip focus check
This commit is contained in:
@@ -1627,7 +1627,9 @@ bool SDL_SetCursor(SDL_Cursor *cursor)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
mouse->cur_cursor = cursor;
|
mouse->cur_cursor = cursor;
|
||||||
} else if (mouse->focus) {
|
}
|
||||||
|
|
||||||
|
if (mouse->focus) {
|
||||||
cursor = mouse->cur_cursor;
|
cursor = mouse->cur_cursor;
|
||||||
} else {
|
} else {
|
||||||
cursor = mouse->def_cursor;
|
cursor = mouse->def_cursor;
|
||||||
|
|||||||
Reference in New Issue
Block a user