refactor(macos): do nothing if in fullscreen

pull/9117/head
himura467 2025-10-10 12:56:52 +09:00 committed by Mitchell Hashimoto
parent ded3dd4cbc
commit 8d49c698e4
1 changed files with 3 additions and 0 deletions

View File

@ -177,6 +177,9 @@ class TerminalController: BaseTerminalController, TabGroupCloseCoordinator.Contr
}
override func toggleBackgroundOpacity() {
// Do nothing if in fullscreen (transparency doesn't apply in fullscreen)
guard let window = self.window, !window.styleMask.contains(.fullScreen) else { return }
super.toggleBackgroundOpacity()
// Sync the window appearance with the new opacity state