fix(macOS): Fix visual glitch when switching between full-screen apps

* Check whether window is on active space before clamping

Fixes #2527
This commit is contained in:
Marvin A. Ruder
2024-10-30 19:56:01 +01:00
parent 04f752e5b8
commit 7db9528aca

View File

@ -152,6 +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 let screen = window.screen else { return }
let visibleFrame = screen.visibleFrame