mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 12:55:37 +00:00
Don't warp the mouse within a window while it's minimized
This commit is contained in:
parent
87ac373493
commit
1ec409c214
|
@ -761,6 +761,10 @@ SDL_WarpMouseInWindow(SDL_Window * window, int x, int y)
|
|||
return;
|
||||
}
|
||||
|
||||
if ((window->flags & SDL_WINDOW_MINIMIZED) == SDL_WINDOW_MINIMIZED) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (mouse->WarpMouse) {
|
||||
mouse->WarpMouse(window, x, y);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue