summaryrefslogtreecommitdiffstats
path: root/widget
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-12-06 06:16:16 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-12-06 06:16:16 +0100
commit07850718fc1e66c06cdc484c5b389b7fd88ecc19 (patch)
tree6b5a5bbd965c5d49bed61bcae7d59d38fecd29f8 /widget
parent0a39f5eac7987495de81f19c6c83258227312554 (diff)
downloadiced-07850718fc1e66c06cdc484c5b389b7fd88ecc19.tar.gz
iced-07850718fc1e66c06cdc484c5b389b7fd88ecc19.tar.bz2
iced-07850718fc1e66c06cdc484c5b389b7fd88ecc19.zip
Request redraw in `tooltip` when `State` changes
Diffstat (limited to 'widget')
-rw-r--r--widget/src/tooltip.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/widget/src/tooltip.rs b/widget/src/tooltip.rs
index 3b9d2066..4d5d9d82 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();
}