Commit 7c29f5a3 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

winemac.drv: Make sure that NSMiniaturizableWindowMask style mask is set before…

winemac.drv: Make sure that NSMiniaturizableWindowMask style mask is set before calling miniaturize. miniaturize fails to minimize window when NSMiniaturizableWindowMask style is not set. The style will be restored on window restore (or earlier). Signed-off-by: 's avatarPiotr Caban <piotr@codeweavers.com> Signed-off-by: 's avatarKen Thomases <ken@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent b0199ea2
......@@ -1289,6 +1289,7 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
}
else
{
[self setStyleMask:([self styleMask] | NSMiniaturizableWindowMask)];
[super miniaturize:nil];
discard |= event_mask_for_type(WINDOW_BROUGHT_FORWARD) |
event_mask_for_type(WINDOW_GOT_FOCUS) |
......@@ -1763,6 +1764,7 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
if (pendingMinimize)
{
[self setStyleMask:([self styleMask] | NSMiniaturizableWindowMask)];
[super miniaturize:nil];
pendingMinimize = FALSE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment