diff --git a/input/drivers/winraw_input.c b/input/drivers/winraw_input.c index 834d0775a7..15be0fb777 100644 --- a/input/drivers/winraw_input.c +++ b/input/drivers/winraw_input.c @@ -225,7 +225,7 @@ static BOOL winraw_set_mouse_input(HWND window, bool grab) RAWINPUTDEVICE rid; if (window) - rid.dwFlags = grab ? RIDEV_CAPTUREMOUSE : 0; + rid.dwFlags = grab ? RIDEV_CAPTUREMOUSE | RIDEV_NOLEGACY : 0; else rid.dwFlags = RIDEV_REMOVE;