mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
Merge pull request #2543 from marvinruder/2527-macos-visual-glitch-when-switching-between-full-screen-apps
fix(macOS): Fix visual glitch when switching between full-screen apps
This commit is contained in:
@ -152,8 +152,12 @@ class BaseTerminalController: NSWindowController,
|
||||
// screen then we clamp it back to within the screen.
|
||||
guard let window else { return }
|
||||
guard window.isVisible else { return }
|
||||
guard let screen = window.screen else { return }
|
||||
|
||||
// We ignore fullscreen windows because macOS automatically resizes
|
||||
// those back to the fullscreen bounds.
|
||||
guard !window.styleMask.contains(.fullScreen) else { return }
|
||||
|
||||
guard let screen = window.screen else { return }
|
||||
let visibleFrame = screen.visibleFrame
|
||||
var newFrame = window.frame
|
||||
|
||||
|
Reference in New Issue
Block a user