winemac: Don't accidentally clear Cocoa window style mask bits.
This commit is contained in:
parent
dd59ab26fe
commit
bdcb8138fe
|
@ -569,8 +569,10 @@ - (void) adjustFeaturesForState
|
|||
|
||||
- (void) setWindowFeatures:(const struct macdrv_window_features*)wf
|
||||
{
|
||||
static const NSUInteger usedStyles = NSTitledWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask |
|
||||
NSResizableWindowMask | NSUtilityWindowMask | NSBorderlessWindowMask;
|
||||
NSUInteger currentStyle = [self styleMask];
|
||||
NSUInteger newStyle = style_mask_for_features(wf);
|
||||
NSUInteger newStyle = style_mask_for_features(wf) | (currentStyle & ~usedStyles);
|
||||
|
||||
if (newStyle != currentStyle)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue