mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-05-16 13:18:38 +03:00

~~When processing toggle_fullscreen actions, multiple FullscreenStyle derived objects would register observers on the same window and subsequently remove them when the old style was deinited.~~ ~~This change passes ownership of the fullscreenNotification observers to TerminalController while still allowing FullscreenStyles access to the window for style specific actions.~~ We need to have at least one fullscreen style (even if it is not being used) to make sure that observers for fullscreen state changes are set up. An alternative approach would be the first version of this PR (for which my reasoning was wrong but the end change was correct) which registers the fullscreen observers at either the TerminalController or BaseTerminalController level. Fixes #3553