mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-12-28 17:14:39 +00:00
macOS: Update core surface size when config changes
This commit is contained in:
@@ -129,7 +129,7 @@ class SurfaceScrollView: NSView {
|
||||
surfaceView.$derivedConfig
|
||||
.sink { [weak self] _ in
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
self?.synchronizeAppearance()
|
||||
self?.handleConfigChange()
|
||||
}
|
||||
}
|
||||
.store(in: &cancellables)
|
||||
@@ -232,6 +232,12 @@ class SurfaceScrollView: NSView {
|
||||
private func handleScrollerStyleChange() {
|
||||
synchronizeCoreSurface()
|
||||
}
|
||||
|
||||
/// Handles config changes
|
||||
private func handleConfigChange() {
|
||||
synchronizeAppearance()
|
||||
synchronizeCoreSurface()
|
||||
}
|
||||
|
||||
/// Handles live scroll events (user actively dragging the scrollbar).
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user