mirror of
https://github.com/wez/wezterm.git
synced 2024-11-22 22:42:48 +03:00
Fix transparent title bar on macOS with window_decorations = "RESIZE|MACOS_FORCE_DISABLE_SHADOW"
(#3330)
Fix transparent title bar
This commit is contained in:
parent
4913817067
commit
073ea55a4c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user