diff --git a/Sources/GhosttyTerminalView.swift b/Sources/GhosttyTerminalView.swift index 5f46c9b917cd..9606ed475bce 100644 --- a/Sources/GhosttyTerminalView.swift +++ b/Sources/GhosttyTerminalView.swift @@ -14229,7 +14229,7 @@ struct GhosttyTerminalView: NSViewRepresentable { let wasBoundToDismantledHost: Bool = { guard let host, let hostedView else { return false } guard TerminalWindowPortalRegistry.hasEntry(for: hostedView, boundTo: host), - let terminalSurface = hostedView.terminalSurface else { + let terminalSurface = hostedView.surfaceView.terminalSurface else { return false } return terminalSurface.ownsPortalHost(