Fix ghostty bridge header drift

This commit is contained in:
Lawrence Chen
2026-03-30 17:44:12 -07:00
parent f4af1708a9
commit 67d003db49
2 changed files with 9 additions and 1169 deletions
+3 -3
View File
@@ -1103,11 +1103,10 @@ class GhosttyApp {
return GhosttyApp.shared.handleAction(target: target, action: action)
}
runtimeConfig.read_clipboard_cb = { userdata, location, state in
guard let callbackContext = GhosttyApp.callbackContext(from: userdata) else { return }
guard let callbackContext = GhosttyApp.callbackContext(from: userdata),
let requestSurface = callbackContext.runtimeSurface else { return false }
DispatchQueue.main.async {
guard let requestSurface = callbackContext.runtimeSurface else { return }
func completeClipboardRequest(with text: String) {
let finish = {
guard callbackContext.runtimeSurface == requestSurface else { return }
@@ -1209,6 +1208,7 @@ class GhosttyApp {
)
}
}
return true
}
runtimeConfig.confirm_read_clipboard_cb = { userdata, content, state, _ in
guard let content else { return }
+6 -1166
View File
File diff suppressed because it is too large Load Diff