Skip redraw request if already redrawing in tooltip

This commit is contained in:
Héctor Ramón Jiménez 2025-12-02 04:19:32 +01:00
parent 453528743b
commit 40b184f022
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -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) => (),
}