[PATCH 0/4] MR233: win32u: Partially move raw input APIs.
Zebediah Figura
zfigura at codeweavers.com
Mon Jun 13 23:05:00 CDT 2022
On 6/13/22 03:27, Rémi Bernon (@rbernon) wrote:
> 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.
>
I think that doesn't work, because they're still part of the same
process. It probably is best to just drop that part of the tests for now.
More information about the wine-devel
mailing list