Rémi Bernon : user32/tests: Recreate the window to make it more likely to have focus.
Alexandre Julliard
julliard at winehq.org
Fri May 14 15:47:04 CDT 2021
Module: wine
Branch: master
Commit: acecfc6336e0b08c2da9f457acc83b0f1f862f2f
URL: https://source.winehq.org/git/wine.git/?a=commit;h=acecfc6336e0b08c2da9f457acc83b0f1f862f2f
Author: Rémi Bernon <rbernon at codeweavers.com>
Date: Fri May 14 16:04:47 2021 +0200
user32/tests: Recreate the window to make it more likely to have focus.
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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();
More information about the wine-cvs
mailing list