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>
This commit is contained in:
parent
516c7e0dd8
commit
acecfc6336
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue