mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-06 07:38:21 +00:00
Fixes phantom mouse drag/selection when switching splits or apps. The suppressNextLeftMouseUp flag and core mouse click_state were not being reset on focus transitions, causing stale state that led to unexpected drag behavior. - Reset suppressNextLeftMouseUp in focusDidChange when losing focus - Defensively reset the flag when processing normal clicks - Reset core mouse.click_state and left_click_count on focus loss