Stop invalidating layout in tooltip widget
This commit is contained in:
parent
9a59b8a6d4
commit
ad0e4c53cf
1 changed files with 3 additions and 5 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue