From 8d49c698e47519a889269cbdcdef33f705135767 Mon Sep 17 00:00:00 2001 From: himura467 Date: Fri, 10 Oct 2025 12:56:52 +0900 Subject: [PATCH] refactor(macos): do nothing if in fullscreen --- macos/Sources/Features/Terminal/TerminalController.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/macos/Sources/Features/Terminal/TerminalController.swift b/macos/Sources/Features/Terminal/TerminalController.swift index 29b856cdb..cc5b48700 100644 --- a/macos/Sources/Features/Terminal/TerminalController.swift +++ b/macos/Sources/Features/Terminal/TerminalController.swift @@ -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