Module: wine Branch: master Commit: acecfc6336e0b08c2da9f457acc83b0f1f862f2f URL: https://source.winehq.org/git/wine.git/?a=commit;h=acecfc6336e0b08c2da9f457a...
Author: Rémi Bernon rbernon@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@codeweavers.com Signed-off-by: Alexandre Julliard julliard@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();