ZIm/crates/gpui/src
Kirill Bulatov c11bde7bf4
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
2025-01-01 18:47:10 +00:00
..
app Cleanups preparing for WindowContext refactor (#22475) 2024-12-28 21:36:14 +00:00
elements Remove stuck tooltips (#22548) 2025-01-01 18:47:10 +00:00
keymap Add initial FreeBSD support (#20480) 2024-11-11 18:39:05 +01:00
platform Update Blade with acquire fixes, multisampling (#22409) 2024-12-27 21:29:03 +00:00
text_system Small fixes after terminal split (#22468) 2024-12-28 17:29:13 +00:00
window chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
action.rs Unbind app menu actions (#20268) 2024-11-05 16:18:41 -08:00
app.rs Remove stuck tooltips (#22548) 2025-01-01 18:47:10 +00:00
arena.rs Log if element arena allocation is >80% 2024-01-24 11:03:28 +01:00
asset_cache.rs Add Loading and Fallback States to Image Elements (via StyledImage) (#20371) 2024-11-15 19:12:01 -08:00
assets.rs repl: Set up a way to copy output from the REPL (#16649) 2024-08-22 15:03:42 -07:00
bounds_tree.rs chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
color.rs gpui: Add linear gradient support to fill background (#20812) 2024-12-11 21:52:52 +02:00
element.rs Store focus handles in AppContext instead of Window (#22158) 2024-12-17 14:41:00 -07:00
executor.rs Remove Task::get_ready method I added, which is unusable in practice (#22012) 2024-12-14 03:21:41 -07:00
geometry.rs Fix docs for Bounds::from_corner_and_size (#22265) 2024-12-19 21:50:52 +00:00
global.rs Add support for git branches on remote projects (#19755) 2024-10-27 15:50:54 -07:00
gpui.rs Cleanups preparing for WindowContext refactor (#22475) 2024-12-28 21:36:14 +00:00
input.rs Clip UTF-16 offsets in text for range (#20968) 2024-11-20 22:04:26 -07:00
interactive.rs Dequalify WindowContext and ViewContext references (#22477) 2024-12-28 23:09:55 +00:00
key_dispatch.rs Revert "Use correct context path for focused element in WindowContext::bindings_for_action (#18843)" (#20367) 2024-11-07 09:45:23 -07:00
keymap.rs Revert "Use correct context path for focused element in WindowContext::bindings_for_action (#18843)" (#20367) 2024-11-07 09:45:23 -07:00
platform.rs linux: Fix non-maximized Zed windows growing larger across sessions (#22301) 2024-12-20 22:23:25 +00:00
prelude.rs gpui: Don't export named Context from prelude (#21869) 2024-12-11 13:21:40 -05:00
scene.rs gpui: Add linear gradient support to fill background (#20812) 2024-12-11 21:52:52 +02:00
shared_string.rs Rework file picker for SSH modal (#19020) 2024-10-15 12:38:03 +02:00
shared_uri.rs Rework loading images from files (#7088) 2024-01-30 11:26:02 -05:00
style.rs Add Corner to geometry and make names of corner methods consistent (#22119) 2024-12-16 22:57:15 -07:00
styled.rs gpui: Clean up Styled doc comments (#20731) 2024-11-15 11:27:49 -05:00
subscription.rs Refine inline transformation UX (#12939) 2024-06-13 08:35:22 +02:00
svg_renderer.rs Add Loading and Fallback States to Image Elements (via StyledImage) (#20371) 2024-11-15 19:12:01 -08:00
taffy.rs Revert "chore: Bump taffy to 0.5.2 (#18729)" (#19189) 2024-10-14 15:19:10 +02:00
test.rs Throttle the sending of UpdateFollowers messages (#8918) 2024-03-06 14:58:41 +01:00
text_system.rs Add missing field to impl Hash for RenderGlyphParams (#20316) 2024-11-07 09:34:54 -07:00
util.rs chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
view.rs Cleanups preparing for WindowContext refactor (#22475) 2024-12-28 21:36:14 +00:00
window.rs Remove stuck tooltips (#22548) 2025-01-01 18:47:10 +00:00