mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
update config in TerminalController.windowDidLoad and TerminalController.configDidReload
This commit is contained in:
@ -111,6 +111,8 @@ class TerminalController: NSWindowController, NSWindowDelegate,
|
|||||||
//MARK: - Methods
|
//MARK: - Methods
|
||||||
|
|
||||||
func configDidReload() {
|
func configDidReload() {
|
||||||
|
guard let window = window as? TerminalWindow else { return }
|
||||||
|
window.focusFollowsMouse = ghostty.config.focusFollowsMouse
|
||||||
syncAppearance()
|
syncAppearance()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -199,7 +201,6 @@ class TerminalController: NSWindowController, NSWindowDelegate,
|
|||||||
}
|
}
|
||||||
|
|
||||||
window.hasShadow = ghostty.config.macosWindowShadow
|
window.hasShadow = ghostty.config.macosWindowShadow
|
||||||
window.focusFollowsMouse = ghostty.config.focusFollowsMouse
|
|
||||||
|
|
||||||
guard window.hasStyledTabs else { return }
|
guard window.hasStyledTabs else { return }
|
||||||
|
|
||||||
@ -343,6 +344,8 @@ class TerminalController: NSWindowController, NSWindowDelegate,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
window.focusFollowsMouse = ghostty.config.focusFollowsMouse
|
||||||
|
|
||||||
// Apply any additional appearance-related properties to the new window.
|
// Apply any additional appearance-related properties to the new window.
|
||||||
syncAppearance()
|
syncAppearance()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user