mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 06:30:46 +00:00
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>
This commit is contained in:
parent
b0199ea2fe
commit
7c29f5a3b3
|
@ -1289,6 +1289,7 @@ - (void) setMacDrvState:(const struct macdrv_window_state*)state
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
[self setStyleMask:([self styleMask] | NSMiniaturizableWindowMask)];
|
||||||
[super miniaturize:nil];
|
[super miniaturize:nil];
|
||||||
discard |= event_mask_for_type(WINDOW_BROUGHT_FORWARD) |
|
discard |= event_mask_for_type(WINDOW_BROUGHT_FORWARD) |
|
||||||
event_mask_for_type(WINDOW_GOT_FOCUS) |
|
event_mask_for_type(WINDOW_GOT_FOCUS) |
|
||||||
|
@ -1763,6 +1764,7 @@ - (void) orderBelow:(WineWindow*)prev orAbove:(WineWindow*)next activate:(BOOL)a
|
||||||
|
|
||||||
if (pendingMinimize)
|
if (pendingMinimize)
|
||||||
{
|
{
|
||||||
|
[self setStyleMask:([self styleMask] | NSMiniaturizableWindowMask)];
|
||||||
[super miniaturize:nil];
|
[super miniaturize:nil];
|
||||||
pendingMinimize = FALSE;
|
pendingMinimize = FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue