mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
fix(macOS): Prevent squash/stretch during resize
This commit is contained in:
@ -118,6 +118,9 @@ extension Ghostty {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.onAppear() {
|
.onAppear() {
|
||||||
|
// Prevent macOS from stretching rendered frames when the view is resized.
|
||||||
|
surfaceView.layerContentsPlacement = .topLeft
|
||||||
|
|
||||||
// Welcome to the SwiftUI bug house of horrors. On macOS 12 (at least
|
// Welcome to the SwiftUI bug house of horrors. On macOS 12 (at least
|
||||||
// 12.5.1, didn't test other versions), the order in which the view
|
// 12.5.1, didn't test other versions), the order in which the view
|
||||||
// is added to the window hierarchy is such that $surfaceFocus is
|
// is added to the window hierarchy is such that $surfaceFocus is
|
||||||
|
Reference in New Issue
Block a user