Don't send relative motion while in a modal loop

This fixes queuing up a bunch of relative motion events while moving or resizing a window.

(cherry picked from commit 2e61b41652)
This commit is contained in:
Sam Lantinga
2025-03-27 08:09:55 -07:00
parent a1b888f622
commit d73ad0ef18

View File

@@ -620,7 +620,7 @@ static void WIN_HandleRawMouseInput(Uint64 timestamp, SDL_VideoData *data, HANDL
SDL_WindowData *windowdata = window->internal;
if (haveMotion) {
if (haveMotion && !windowdata->in_modal_loop) {
if (!isAbsolute) {
SDL_SendMouseMotion(timestamp, window, mouseID, true, (float)dx, (float)dy);
} else {