[PATCH v2 3/3] user32/tests: Recreate the window to make it more likely to have focus.
Rémi Bernon
rbernon at codeweavers.com
Fri May 14 09:04:47 CDT 2021
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
dlls/user32/tests/input.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dlls/user32/tests/input.c b/dlls/user32/tests/input.c
index 1679048794b..654cabb76d9 100644
--- a/dlls/user32/tests/input.c
+++ b/dlls/user32/tests/input.c
@@ -2763,6 +2763,10 @@ static void test_rawinput(const char* argv0)
{
case 14:
case 15:
+ DestroyWindow(hwnd);
+ hwnd = CreateWindowA("static", "static", WS_VISIBLE | WS_POPUP,
+ pt.x - 50, pt.y - 50, 100, 100, 0, NULL, NULL, NULL);
+ ok(hwnd != 0, "CreateWindow failed\n");
SetWindowPos(hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE|SWP_NOMOVE);
SetForegroundWindow(hwnd);
empty_message_queue();
--
2.31.0
More information about the wine-devel
mailing list