Replace check

* Check whether window is fullscreen before clamping
pull/2543/head
Marvin A. Ruder 2024-10-30 21:42:25 +01:00
parent 7db9528aca
commit b454f90a1a
Failed to extract signature
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ 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.isOnActiveSpace else { return }
guard !window.styleMask.contains(.fullScreen) else { return }
guard let screen = window.screen else { return }
let visibleFrame = screen.visibleFrame