forked from Mirrors/wine-wine
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: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Ken Thomases <ken@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>stable
parent
b0199ea2fe
commit
7c29f5a3b3
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue