From: "Gabriel Ivăncescu" Subject: Re: [PATCH v7 4/6] d3d8/tests: Test for window changes when it's not foreground. Message-Id: <5cc8349d-c2df-e98d-304c-08b40f142f18@gmail.com> Date: Wed, 19 Jan 2022 21:51:47 +0200 In-Reply-To: <25374598.1r3eYUQgxm@grey> References: <05381e8c5ffc4392318a3ba1c3664ac47def7e38.1642524328.git.gabrielopcode@gmail.com> <0d1d7cfa0a45aacb02bf32ee5da6d27a93ac9c71.1642524328.git.gabrielopcode@gmail.com> <25374598.1r3eYUQgxm@grey> On 19/01/2022 21:39, Stefan Dösinger wrote: > Am Dienstag, 18. Jänner 2022, 19:50:28 EAT schrieb Gabriel Ivăncescu: >> Signed-off-by: Gabriel Ivăncescu >> --- >> >> Minimizing/restoring and setting foreground twice + waiting for thread msgs >> seems to work in all cases for testing, both on native and wine. >> >> dlls/d3d8/tests/device.c | 289 +++++++++++++++++++++++++++++++++++++++ >> 1 file changed, 289 insertions(+) > > I finally dug out my Windows 7 box and ran the test there. Unfortunately it > fails: > > device.c:5020: Test failed: Failed to reset device. > device.c:5026: Test failed: Expected (0,0)-(1920,1200), got (0,0)-(960,600). > device.c:5033: Test failed: Expected wndproc != 0x2ed770. > device.c:8677: Test failed: Failed to set foreground window. > device.c:8728: Test failed: Failed to set foreground window. > > The ddraw tests pass on that Windows 7 box though, so the important stuff looks > good. > I tested on 32-bit version of Win7 and WinXP in a VM (not real hardware, I don't know if it matters; I doubt it affects focus results, but at least the device reset works I mean). I also tested this on the original 64-bit Windows 10 version (1507) and it has the same behavior. It's always the same. No idea when it got changed though.