Fix transparent title bar on macOS with window_decorations = "RESIZE|MACOS_FORCE_DISABLE_SHADOW" (#3330)
Fix transparent title bar
This commit is contained in:
1 parent
4913817067
commit
073ea55a4c
1 file changed
+4
@@ -1229,6 +1229,10 @@ fn apply_decorations_to_window(window: &StrongPtr, decorations: WindowDecoration
|
||||
}
|
||||
|
||||
fn decoration_to_mask(decorations: WindowDecorations) -> NSWindowStyleMask {
|
||||
let decorations = decorations.difference(
|
||||
WindowDecorations::MACOS_FORCE_DISABLE_SHADOW
|
||||
| WindowDecorations::MACOS_FORCE_ENABLE_SHADOW,
|
||||
);
|
||||
if decorations == WindowDecorations::TITLE | WindowDecorations::RESIZE {
|
||||
NSWindowStyleMask::NSTitledWindowMask
|
||||
| NSWindowStyleMask::NSClosableWindowMask
|
||||
|
||||
Reference in new issue
Block a user