mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-01-06 05:17:50 +00:00
refactor(macos): do nothing if in fullscreen
This commit is contained in:
committed by
Mitchell Hashimoto
parent
ded3dd4cbc
commit
8d49c698e4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user