diff --git a/src/video/windows/SDL_windowsevents.c b/src/video/windows/SDL_windowsevents.c index e6f10480d7..3738b878f1 100644 --- a/src/video/windows/SDL_windowsevents.c +++ b/src/video/windows/SDL_windowsevents.c @@ -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 {