From e7f7f1f06244794786d93a77320a5842251549a7 Mon Sep 17 00:00:00 2001 From: Nova Date: Thu, 8 Dec 2022 05:40:54 -0500 Subject: [PATCH] fix: drain all dmabufs --- src/wayland/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/mod.rs b/src/wayland/mod.rs index 72e8e09..efc45bb 100644 --- a/src/wayland/mod.rs +++ b/src/wayland/mod.rs @@ -154,7 +154,7 @@ impl Wayland { .and_then(|surf| surf.client()) .map(|c| c.id()) else { continue }; let mut state = self.state.lock(); - for dmabuf in state.pending_dmabufs.drain(1..) { + for dmabuf in state.pending_dmabufs.drain(..) { let _ = self.renderer.import_dmabuf(&dmabuf, None); } let Some(seat_data) = state.seats.get(&client_id).cloned() else { continue };