winemac: Fix hiding windows that are minimized using -close instead of -orderOut:.

Ken Thomases ken at codeweavers.com
Thu Sep 26 23:46:31 CDT 2013


Cocoa won't order a minimized window out of the screen list using -orderOut:.
This leaves a window that should be hidden still visible in the Dock, where
it can be unminimized.

It is necessary to use -close to hide such a window, but close has additional
side effects besides ordering the window off the screen.  So, we make note
that we're "faking" the close and ignore the resulting notifications and
delegate method calls.

The window also has to be made one-shot or else it behaves oddly if it's
shown again after being hidden.  The title bar ceases to update in response
to changes in window focus or the mouse moving over the buttons.
---
dlls/winemac.drv/cocoa_app.m    |  2 ++
dlls/winemac.drv/cocoa_window.h |  2 ++
dlls/winemac.drv/cocoa_window.m | 14 ++++++++++++--
3 files changed, 16 insertions(+), 2 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-winemac-Fix-hiding-windows-that-are-minimized-using-.patch
Type: text/x-patch
Size: 3630 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130926/c904e9bc/attachment.bin>


More information about the wine-patches mailing list