(WINRAW) Prevent outside window mouse clicks when grabbed

This commit is contained in:
sonninnos 2021-02-01 23:22:34 +02:00
parent 80147e3cfe
commit 94446ab488

View File

@ -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;