From c1f61b434484d41a99ec2ebbd5293c6c42928e66 Mon Sep 17 00:00:00 2001 From: Trevor Elkins Date: Thu, 26 Dec 2024 17:48:14 -0500 Subject: [PATCH] one more --- macos/Sources/Ghostty/SurfaceView_AppKit.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/macos/Sources/Ghostty/SurfaceView_AppKit.swift b/macos/Sources/Ghostty/SurfaceView_AppKit.swift index 45f036470..60de024d3 100644 --- a/macos/Sources/Ghostty/SurfaceView_AppKit.swift +++ b/macos/Sources/Ghostty/SurfaceView_AppKit.swift @@ -423,7 +423,9 @@ extension Ghostty { // We also just trigger a backing property change. Just in case the screen has // a different scaling factor, this ensures that we update our content scale. // Issue: https://github.com/ghostty-org/ghostty/issues/2731 - viewDidChangeBackingProperties() + DispatchQueue.main.async { [weak self] in + self?.viewDidChangeBackingProperties() + } } // MARK: - NSView