From 0a39f5eac7987495de81f19c6c83258227312554 Mon Sep 17 00:00:00 2001 From: Chris Manning Date: Sun, 24 Nov 2024 15:04:52 +0000 Subject: [PATCH 1/2] Request redraw in tooltip widget when cursor is hovering --- widget/src/tooltip.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/widget/src/tooltip.rs b/widget/src/tooltip.rs index e66f5e4ac6..3b9d2066fd 100644 --- a/widget/src/tooltip.rs +++ b/widget/src/tooltip.rs @@ -213,6 +213,8 @@ where if was_idle != is_idle { shell.invalidate_layout(); + } else if self.position == Position::FollowCursor && *state != State::Idle { + shell.request_redraw(); } self.content.as_widget_mut().update( From 07850718fc1e66c06cdc484c5b389b7fd88ecc19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Fri, 6 Dec 2024 06:16:16 +0100 Subject: [PATCH 2/2] Request redraw in `tooltip` when `State` changes --- widget/src/tooltip.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/widget/src/tooltip.rs b/widget/src/tooltip.rs index 3b9d2066fd..4d5d9d82a3 100644 --- a/widget/src/tooltip.rs +++ b/widget/src/tooltip.rs @@ -213,7 +213,8 @@ where if was_idle != is_idle { shell.invalidate_layout(); - } else if self.position == Position::FollowCursor && *state != State::Idle { + shell.request_redraw(); + } else if !is_idle && self.position == Position::FollowCursor { shell.request_redraw(); }