1
1
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:
Noé Froidevaux 2023-03-23 02:03:25 +01:00 committed by GitHub
parent 4913817067
commit 073ea55a4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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