Commit bdcb8138 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

winemac: Don't accidentally clear Cocoa window style mask bits.

parent dd59ab26
......@@ -569,8 +569,10 @@ static inline void fix_generic_modifiers_by_device(NSUInteger* modifiers)
- (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)
{
......
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