refactor(macos): do nothing if in fullscreen

This commit is contained in:
himura467
2025-10-10 12:56:52 +09:00
committed by Mitchell Hashimoto
parent ded3dd4cbc
commit 8d49c698e4

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