Skip to content

Commit 0328b38

Browse files
thdxgclaude
andcommitted
fix: flip portal overlay coordinate system to match SwiftUI
Clicking vertical split panes focused the wrong pane because the overlay used bottom-left origin while SwiftUI uses top-left. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 077524a commit 0328b38

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Macterm/Ghostty/TerminalPortal.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ final class TerminalPortalHost {
103103
/// A transparent NSView that hosts all terminal views.
104104
/// Passes hit testing through to terminal subviews.
105105
final class TerminalOverlayView: NSView {
106+
override var isFlipped: Bool { true }
107+
106108
override init(frame frameRect: NSRect) {
107109
super.init(frame: frameRect)
108110
wantsLayer = false

0 commit comments

Comments
 (0)