[PATCH 2/5] winemac: Track whether our windows would be visible if the process weren't hidden.

Ken Thomases ken at codeweavers.com
Tue Dec 31 01:05:09 CST 2013


The -[NSWindow isVisible] method returns FALSE when the process is hidden,
but that's not what we need to know in some cases.

This fixes full-screen games which minimize their window when they lose
focus.  Command-Tabbing away hides the process.  Because the window was not
visible, the code didn't actually minimize it.  When switching back to the
process, no event was sent to the Wine back-end telling it the window had
been restored, so it never resumed drawing to it.
---
dlls/winemac.drv/cocoa_window.h |  1 +
dlls/winemac.drv/cocoa_window.m | 40 ++++++++++++++++++++++++++++++++++------
2 files changed, 35 insertions(+), 6 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-winemac-Track-whether-our-windows-would-be-visible-i.patch
Type: text/x-patch
Size: 3762 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20131231/51d24ddf/attachment.bin>


More information about the wine-patches mailing list