Stop invalidating layout in tooltip widget

This commit is contained in:
Héctor Ramón Jiménez 2025-08-31 17:22:08 +02:00
parent 9a59b8a6d4
commit ad0e4c53cf
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -214,11 +214,9 @@ where
let is_idle = *state == State::Idle;
if was_idle != is_idle {
shell.invalidate_layout();
shell.request_redraw();
} else if self.position == Position::FollowCursor
&& previous_state != *state
if was_idle != is_idle
|| (self.position == Position::FollowCursor
&& previous_state != *state)
{
shell.request_redraw();
}