"James Hawkins" truiken@gmail.com wrote:
I've debugged this a bit more, and when running the user32:win test within the winetest.exe program, all checked calls to GetForegroundWindow return NULL. When running the user32:win test by itself from the command line, only 7 tests fail the GetForegroundWindow call (compared to 40). This makes me wonder about the behavior of GetForegroundWindow in a child process window, but I'm not really sure where to go from here.
I'd suggest to make winetest minimize itself before running the tests.