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,11 +480,12 @@ extension Ghostty {
|
||||
let pos = self.convert(event.locationInWindow, from: nil)
|
||||
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 {
|
||||
Ghostty.moveFocus(to: self)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override func mouseDragged(with event: NSEvent) {
|
||||
self.mouseMoved(with: event)
|
||||
|
Reference in New Issue
Block a user