From 619e12dc75a2c3ec4f32929b9b59ddf2b2355180 Mon Sep 17 00:00:00 2001 From: Lukas <134181853+bo2themax@users.noreply.github.com> Date: Sun, 12 Apr 2026 11:59:51 +0200 Subject: [PATCH] macOS: move `hoverUrl` to `OSSurfaceView` --- macos/Sources/Ghostty/Surface View/OSSurfaceView.swift | 3 +++ macos/Sources/Ghostty/Surface View/SurfaceView_AppKit.swift | 3 --- macos/Sources/Ghostty/Surface View/SurfaceView_UIKit.swift | 3 --- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/macos/Sources/Ghostty/Surface View/OSSurfaceView.swift b/macos/Sources/Ghostty/Surface View/OSSurfaceView.swift index 326b52ca6..3262e775d 100644 --- a/macos/Sources/Ghostty/Surface View/OSSurfaceView.swift +++ b/macos/Sources/Ghostty/Surface View/OSSurfaceView.swift @@ -25,6 +25,9 @@ extension Ghostty { // Any error while initializing the surface. @Published var error: Error? + // The hovered URL string + @Published var hoverUrl: String? + init(id: UUID?, frame: CGRect) { self.id = id ?? UUID() super.init(frame: frame) diff --git a/macos/Sources/Ghostty/Surface View/SurfaceView_AppKit.swift b/macos/Sources/Ghostty/Surface View/SurfaceView_AppKit.swift index c62a13c92..3ba189aad 100644 --- a/macos/Sources/Ghostty/Surface View/SurfaceView_AppKit.swift +++ b/macos/Sources/Ghostty/Surface View/SurfaceView_AppKit.swift @@ -21,9 +21,6 @@ extension Ghostty { } } - // The hovered URL string - @Published var hoverUrl: String? - // The progress report (if any) @Published var progressReport: Action.ProgressReport? { didSet { diff --git a/macos/Sources/Ghostty/Surface View/SurfaceView_UIKit.swift b/macos/Sources/Ghostty/Surface View/SurfaceView_UIKit.swift index 56a1cf039..66f25637f 100644 --- a/macos/Sources/Ghostty/Surface View/SurfaceView_UIKit.swift +++ b/macos/Sources/Ghostty/Surface View/SurfaceView_UIKit.swift @@ -9,9 +9,6 @@ extension Ghostty { // to the app level and it is set from there. @Published var title: String = "👻" - // The hovered URL - @Published var hoverUrl: String? - // The progress report (if any) @Published var progressReport: Action.ProgressReport?