mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
no early return
This commit is contained in:
@ -480,9 +480,10 @@ extension Ghostty {
|
|||||||
let pos = self.convert(event.locationInWindow, from: nil)
|
let pos = self.convert(event.locationInWindow, from: nil)
|
||||||
ghostty_surface_mouse_pos(surface, pos.x, frame.height - pos.y)
|
ghostty_surface_mouse_pos(surface, pos.x, frame.height - pos.y)
|
||||||
|
|
||||||
guard let window = self.window as? TerminalWindow else { return }
|
if let window = self.window as? TerminalWindow {
|
||||||
if !self.focused && window.focusFollowsMouse {
|
if !self.focused && window.focusFollowsMouse {
|
||||||
Ghostty.moveFocus(to: self)
|
Ghostty.moveFocus(to: self)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user