macos: trigger fullscreenDidChange on any fullscreen event

Fixes #2840
Related to #2842

This builds on #2842 by missing a key situation: when native fullscreen
is toggled using the menu bar items it doesn't go through our
`FullscreenStyle` machinery so we don't trigger fullscreen change
events.

This commit makes it so that our FullscreenStyle always listens for
native fullscreen change (even in non-native modes) to fire a fullscreen
did change event. This way we can always rely on the event to be fired
when fullscreen changes no matter what.
This commit is contained in:
Mitchell Hashimoto
2024-12-01 11:31:55 -08:00
parent 3c637a2777
commit f384fd038b
4 changed files with 69 additions and 21 deletions

View File

@@ -57,6 +57,7 @@ class QuickTerminalController: BaseTerminalController {
// MARK: NSWindowController
override func windowDidLoad() {
super.windowDidLoad()
guard let window = self.window else { return }
// The controller is the window delegate so we can detect events such as