diff --git a/src/events/SDL_mouse.c b/src/events/SDL_mouse.c index e88489c4a..6bb8307b9 100644 --- a/src/events/SDL_mouse.c +++ b/src/events/SDL_mouse.c @@ -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 {