http://bugs.winehq.org/show_bug.cgi?id=2082
--- Comment #132 from Ken Thomases ken@codeweavers.com --- (In reply to comment #131)
We also have tests that show that switching to fullscreen does have an effect on e.g. window dimensions, z-order and focus.
I found tests for the foreground window in dlls/ddraw/tests/ddrawmodes.c, testcooperativelevels_normal() and testcooperativelevels_exclusive(). I didn't find other tests related to z-order. Please let me know if I missed them.
As we've seen with this bug, a window may be the foreground window without being front-most, in particular if it owns other windows. Also if it's non-topmost and there are topmost windows.
I'll try to extend the tests to test some possibilities with respect to actual z-order viz-a-viz owned, topmost, and other windows.
With respect to a WGL extension, were you thinking of something like an alternative to wglMakeCurrent() such as wglMakeCurrentFullScreenWINE()?