Skip redraw request if already redrawing in tooltip
This commit is contained in:
parent
453528743b
commit
40b184f022
1 changed files with 7 additions and 1 deletions
|
|
@ -258,7 +258,13 @@ where
|
|||
(State::Open { .. }, None) => {
|
||||
*state = State::Idle;
|
||||
shell.invalidate_layout();
|
||||
shell.request_redraw();
|
||||
|
||||
if !matches!(
|
||||
event,
|
||||
Event::Window(window::Event::RedrawRequested(_)),
|
||||
) {
|
||||
shell.request_redraw();
|
||||
}
|
||||
}
|
||||
(State::Open { .. }, Some(_)) | (State::Idle, None) => (),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue