ddraw/tests: Do not create a fullscreen test window in test_window_position_cb().

Some window managers have trouble moving fullscreen windows to another monitor. For example, KWin
doesn't allow moving windows with _NET_WM_STATE_FULLSCREEN set. FVWM used by TestBots keeps
the size for fullscreen windows after they are moved to another monitor and when the window is also
fullscreen on the new monitor, which could be a bug in FVWM. But let's work around this in the tests
as well. The changed tests don't need created windows being fullscreen at the start.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54172
This commit is contained in:
Zhiyi Zhang 2023-01-11 10:08:22 +08:00 committed by Alexandre Julliard
parent a5cc9c9d44
commit 36afabb9c1
4 changed files with 4 additions and 8 deletions

View file

@ -14457,8 +14457,7 @@ static BOOL CALLBACK test_window_position_cb(HMONITOR monitor, HDC hdc, RECT *mo
ddraw = create_ddraw();
ok(!!ddraw, "Failed to create a ddraw object.\n");
window = CreateWindowA("static", "ddraw_test", WS_POPUP | WS_VISIBLE, monitor_rect->left,
monitor_rect->top, monitor_rect->right - monitor_rect->left,
monitor_rect->bottom - monitor_rect->top, NULL, NULL, NULL, NULL);
monitor_rect->top, 100, 100, NULL, NULL, NULL, NULL);
ok(!!window, "Failed to create a window.\n");
flush_events();

View file

@ -15371,8 +15371,7 @@ static BOOL CALLBACK test_window_position_cb(HMONITOR monitor, HDC hdc, RECT *mo
ddraw = create_ddraw();
ok(!!ddraw, "Failed to create a ddraw object.\n");
window = CreateWindowA("static", "ddraw_test", WS_POPUP | WS_VISIBLE, monitor_rect->left,
monitor_rect->top, monitor_rect->right - monitor_rect->left,
monitor_rect->bottom - monitor_rect->top, NULL, NULL, NULL, NULL);
monitor_rect->top, 100, 100, NULL, NULL, NULL, NULL);
ok(!!window, "Failed to create a window.\n");
flush_events();

View file

@ -18421,8 +18421,7 @@ static BOOL CALLBACK test_window_position_cb(HMONITOR monitor, HDC hdc, RECT *mo
ddraw = create_ddraw();
ok(!!ddraw, "Failed to create a ddraw object.\n");
window = CreateWindowA("static", "ddraw_test", WS_POPUP | WS_VISIBLE, monitor_rect->left,
monitor_rect->top, monitor_rect->right - monitor_rect->left,
monitor_rect->bottom - monitor_rect->top, NULL, NULL, NULL, NULL);
monitor_rect->top, 100, 100, NULL, NULL, NULL, NULL);
ok(!!window, "Failed to create a window.\n");
flush_events();

View file

@ -18688,8 +18688,7 @@ static BOOL CALLBACK test_window_position_cb(HMONITOR monitor, HDC hdc, RECT *mo
ddraw = create_ddraw();
ok(!!ddraw, "Failed to create a ddraw object.\n");
window = CreateWindowA("static", "ddraw_test", WS_POPUP | WS_VISIBLE, monitor_rect->left,
monitor_rect->top, monitor_rect->right - monitor_rect->left,
monitor_rect->bottom - monitor_rect->top, NULL, NULL, NULL, NULL);
monitor_rect->top, 100, 100, NULL, NULL, NULL, NULL);
ok(!!window, "Failed to create a window.\n");
flush_events();