mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-02 07:58:37 +00:00
fix: the renderer's cursor remains in an unfocused state (block_hollow)
This commit is contained in:
@@ -240,7 +240,12 @@ class BaseTerminalController: NSWindowController,
|
|||||||
|
|
||||||
// Move focus to the target surface and activate the window/app
|
// Move focus to the target surface and activate the window/app
|
||||||
DispatchQueue.main.async {
|
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)
|
view.window?.makeKeyAndOrderFront(nil)
|
||||||
if !NSApp.isActive {
|
if !NSApp.isActive {
|
||||||
NSApp.activate(ignoringOtherApps: true)
|
NSApp.activate(ignoringOtherApps: true)
|
||||||
|
Reference in New Issue
Block a user