summaryrefslogtreecommitdiffstats
path: root/winit
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-10-22 02:53:30 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-11-05 23:52:57 +0100
commit0691e617f31aab92cb5ddc4698f841357f4c14ec (patch)
tree1f307567db4bb0aba17925553f0add9a638d8022 /winit
parent52490397d64f187d55f51dc5883e3ba6c0da57a6 (diff)
downloadiced-0691e617f31aab92cb5ddc4698f841357f4c14ec.tar.gz
iced-0691e617f31aab92cb5ddc4698f841357f4c14ec.tar.bz2
iced-0691e617f31aab92cb5ddc4698f841357f4c14ec.zip
Fix `WindowManager::is_idle` in `iced_winit`
Diffstat (limited to 'winit')
-rw-r--r--winit/src/program/window_manager.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/winit/src/program/window_manager.rs b/winit/src/program/window_manager.rs
index 7c00a84b..10a973fe 100644
--- a/winit/src/program/window_manager.rs
+++ b/winit/src/program/window_manager.rs
@@ -79,7 +79,7 @@ where
pub fn is_idle(&self) -> bool {
self.entries
.values()
- .any(|window| window.redraw_at.is_some())
+ .all(|window| window.redraw_at.is_none())
}
pub fn redraw_at(&self) -> Option<Instant> {