-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hello, the comctl32:propsheet and comctl32:listview are regularly failing on the Windows testbots.
This is visible in these test runs with an "empty" patch to these tests: https://testbot.winehq.org/JobDetails.pl?Key=6828 https://testbot.winehq.org/JobDetails.pl?Key=6829
This is because windows forbids them to get into foreground.
This patch is working around this by simulating an ALT key press and then calling SetForegroundWindow.
These are the results with an earlier revision of this patch: https://testbot.winehq.org/JobDetails.pl?Key=6832 https://testbot.winehq.org/JobDetails.pl?Key=6833
Kind regards, Bernhard
@@ -587,6 +587,7 @@ static HWND create_parent_window(BOOL Unicode) WS_MAXIMIZEBOX | WS_VISIBLE, 0, 0, 100, 100, GetDesktopWindow(), NULL, GetModuleHandleA(NULL), NULL);
- force_set_foreground_window(hwnd); SetWindowPos( hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE|SWP_NOMOVE ); return hwnd; }
I don't know about propsheet part, but for a listview you're setting parent to foreground, does it mean that lately created child listview will be foreground as well? Cause failing test is about mouse movements over listview, not its parent.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hello Nikolay,
I don't know about propsheet part, but for a listview you're setting parent to foreground, does it mean that lately created child listview will be foreground as well? Cause failing test is about mouse movements over listview, not its parent.
If I understand you correct yes, most of the listviews in the tests are created with the parent window being that one I try to get to foreground. Therefore the failing listview is then also in foreground.
If you execute this test in windows from a cmd window which has focus then the test is not failing. But when you immediately after starting the test click to another opened window or minimize the cmd window this failure can be reproduced.
So one could say this patch is not fixing the test - it only changes the environment to the state it currently expects.
Kind regards, Bernhard