[Bug 10841] Wine does not restore display resolution when it's looses focus

wine-bugs at winehq.org wine-bugs at winehq.org
Wed May 28 16:58:17 CDT 2008


http://bugs.winehq.org/show_bug.cgi?id=10841


Rolf Neuberger <rolf at neuberrosoft.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rolf at neuberrosoft.de




--- Comment #32 from Rolf Neuberger <rolf at neuberrosoft.de>  2008-05-28 16:58:13 ---
(In reply to comment #28)
> It seems to happen to all apps that go fullscreen (such as games). I'm using
> Wine 1.0-rc2.
> 

Looking over/grepping the code, Wine seems to ignore the CDS_FULLSCREEN flag.
It *uses* it from within its d3d implementation, but the receiving code in
winex11drv.dll doesn't pay any attention to this flag.
A well behaved application should react to loss of focus by restoring the
desktop display mode, by calling ChangeDisplaySettings(NULL,0), and it should
do the same at termination.
However, when an application switches the display mode using the CDS_FULLSCREEN
flag, Windows itself will restore the desktop display mode when the application
terminates. This makes it possible for applications that don't really abide by
the rules to slip by on real Windows systems, but exhibit this issue on Wine.

I don't know whether your specific games fall into this category, or if there
are maybe some other issues at work, but I'm quite sure that Wine's ignoring of
the CDS_FULLSCREEN flag is at least a possible cause for the symptoms you're
seeing.


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list