mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-06-27 17:58:41 +03:00
macos: always apply initial size to new windows
We would previously exit early for non-transparent windows, which skipped the call to setInitialWindowSize().
This commit is contained in:
@ -449,16 +449,17 @@ extension Ghostty {
|
||||
override func viewDidMoveToWindow() {
|
||||
guard let window = self.window else { return }
|
||||
guard let surface = self.surface else { return }
|
||||
guard ghostty_surface_transparent(surface) else { return }
|
||||
|
||||
// Set the window transparency settings
|
||||
window.isOpaque = false
|
||||
window.hasShadow = false
|
||||
window.backgroundColor = .clear
|
||||
if ghostty_surface_transparent(surface) {
|
||||
// Set the window transparency settings
|
||||
window.isOpaque = false
|
||||
window.hasShadow = false
|
||||
window.backgroundColor = .clear
|
||||
|
||||
// If we have a blur, set the blur
|
||||
ghostty_set_window_background_blur(surface, Unmanaged.passUnretained(window).toOpaque())
|
||||
}
|
||||
|
||||
// If we have a blur, set the blur
|
||||
ghostty_set_window_background_blur(surface, Unmanaged.passUnretained(window).toOpaque())
|
||||
|
||||
// Try to set the initial window size if we have one
|
||||
setInitialWindowSize()
|
||||
}
|
||||
|
Reference in New Issue
Block a user