winemac: Reapply display modes when switching back to app after "escaping" with Command-Tab.

Ken Thomases ken at codeweavers.com
Tue Oct 1 23:24:13 CDT 2013


The Mac driver captures the displays when the program changes the display
mode.  If the user types Command-Tab to switch away, it resets the displays
to their original modes and releases them.  However, if they switched back,
it didn't restore the mode to what the program had set, so the program often
showed the game window in a corner of the screen with the top behind the Mac
menu bar.

This commit tracks the display modes in effect at the time of Command-Tab and
reapplies them when the program becomes active again.  If the program
attempts to make further changes to the display mode while it's inactive,
those update the tracked "latent" display modes rather than being put into
effect immediately.  That means that if the program restored the original
display mode, the latent mode is discarded.

May fix bug <http://bugs.winehq.org/show_bug.cgi?id=34475>.
---
dlls/winemac.drv/cocoa_app.h |    1 +
dlls/winemac.drv/cocoa_app.m |   58 ++++++++++++++++++++++++++++++++++--------
2 files changed, 48 insertions(+), 11 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-winemac-Reapply-display-modes-when-switching-back-to.patch
Type: text/x-patch
Size: 6215 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20131001/f49422f7/attachment.bin>


More information about the wine-patches mailing list