[PATCH 0/4] MR233: win32u: Partially move raw input APIs.
Rémi Bernon (@rbernon)
wine at gitlab.winehq.org
Mon Jun 13 03:27:03 CDT 2022
Rémi Bernon (@rbernon) commented about dlls/user32/tests/input.c:
> GetCursorPos(&pt);
> ok(pt.x == 300 && pt.y == 300, "Unexpected cursor position pos %ldx%ld\n", pt.x, pt.y);
>
> - hwnd = CreateWindowA("static", "static", WS_VISIBLE | WS_POPUP,
> + hwnd = CreateWindowA("static", "static", WS_POPUP,
> 100, 100, 100, 100, 0, NULL, NULL, NULL);
> SetWindowLongPtrA(hwnd, GWLP_WNDPROC, (LONG_PTR)rawinputbuffer_wndproc);
> ok(hwnd != 0, "CreateWindow failed\n");
Wine currently doesn't listen to X11 mouse events in the background, it needs a visible window to receive them and only when the cursor moves over it.
If you want to test `RIDEV_INPUTSINK` I think the best way is to use a second window (possibly invisible), and use it as the `hwndTarget`, while still moving the cursor over the first, visible, window.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/233#note_1935
More information about the wine-devel
mailing list