mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-07 07:00:48 +00:00
Show the cursor when relative mode is enabled and the app doesn't have focus
Testing: * Run test/testwm * Hit Ctrl-R to toggle relative mode * Alt-tab away * Move the mouse over testwm * Note that the cursor is visible until testwm gains focus
This commit is contained in:
parent
0cc61b27a2
commit
44f66b5c8b
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue