comment
parent
b454f90a1a
commit
756755c052
|
|
@ -152,9 +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 !window.styleMask.contains(.fullScreen) 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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue