macos: fix window transparency

Revert window decoration changes from
a6ce506714.
This commit is contained in:
Arjan Molenaar 2024-08-02 17:30:48 +02:00
parent 564a237454
commit 84847e46fa

View File

@ -785,20 +785,13 @@ typedef NSString *CALayerContentsGravity;
if (decorated)
{
style_mask &= ~NSWindowStyleMaskFullSizeContentView;
[self setTitleVisibility:NSWindowTitleVisible];
style_mask |= NSWindowStyleMaskTitled;
}
else
{
style_mask |= NSWindowStyleMaskFullSizeContentView;
[self setTitleVisibility:NSWindowTitleHidden];
style_mask &= ~NSWindowStyleMaskTitled;
}
[self setTitlebarAppearsTransparent:!decorated];
[[self standardWindowButton:NSWindowCloseButton] setHidden:!decorated];
[[self standardWindowButton:NSWindowMiniaturizeButton] setHidden:!decorated];
[[self standardWindowButton:NSWindowZoomButton] setHidden:!decorated];
[self setStyleMask:style_mask];
}