diff options
| author | himura467 <mitarashidango0927@gmail.com> | 2025-09-30 05:21:56 +0900 |
|---|---|---|
| committer | himura467 <mitarashidango0927@gmail.com> | 2025-09-30 05:21:56 +0900 |
| commit | bc3d0b7cbc2ff4343243eaed55656eb1a1555ea5 (patch) | |
| tree | c5afaf85603735378ff072ad290a7c66219ffe80 /macos/Sources/Features | |
| parent | a6dd7bbeee5b6d879732aa31e25f07c47a9694cd (diff) | |
fix: the renderer's cursor remains in an unfocused state (block_hollow)
Diffstat (limited to 'macos/Sources/Features')
| -rw-r--r-- | macos/Sources/Features/Terminal/BaseTerminalController.swift | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/macos/Sources/Features/Terminal/BaseTerminalController.swift b/macos/Sources/Features/Terminal/BaseTerminalController.swift index c1c350f9d..4298dd1e6 100644 --- a/macos/Sources/Features/Terminal/BaseTerminalController.swift +++ b/macos/Sources/Features/Terminal/BaseTerminalController.swift @@ -240,7 +240,12 @@ class BaseTerminalController: NSWindowController, // Move focus to the target surface and activate the window/app DispatchQueue.main.async { - Ghostty.moveFocus(to: view, from: self.focusedSurface) + // We suppress the spurious unfocus signal by passing nil for `from` + // when the surface is already the logically focused one. + Ghostty.moveFocus( + to: view, + from: (self.focusedSurface == view) ? nil : self.focusedSurface + ) view.window?.makeKeyAndOrderFront(nil) if !NSApp.isActive { NSApp.activate(ignoringOtherApps: true) |
