Remove stuck tooltips (#22548)
Closes https://github.com/zed-industries/zed/issues/21657 Follow-up of https://github.com/zed-industries/zed/pull/22488 Previous PR broke git blame tooltips, which are expected to be open when hovered, even if the mouse cursor is moved away from the actual blame entry that caused the tooltip to appear. Current version moves the invalidation logic into `prepaint_tooltip`, where the new data about the tooltip origin is used to ensure we invalidate only tooltips that have no mouse cursor in either origin bounds or tooltip bounds (if it's hoverable). Release Notes: - Fixed tooltips getting stuck
K
Kirill Bulatov committed
c11bde7bf4e428be7639aaf9ffc7ea3dc5becf16
Parent: 0d423a7
Committed by GitHub <noreply@github.com>
on 1/1/2025, 6:47:10 PM