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;
|
let is_idle = *state == State::Idle;
|
||||||
|
|
||||||
if was_idle != is_idle {
|
if was_idle != is_idle
|
||||||
shell.invalidate_layout();
|
|| (self.position == Position::FollowCursor
|
||||||
shell.request_redraw();
|
&& previous_state != *state)
|
||||||
} else if self.position == Position::FollowCursor
|
|
||||||
&& previous_state != *state
|
|
||||||
{
|
{
|
||||||
shell.request_redraw();
|
shell.request_redraw();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue