srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/crates/wayland/src/winit/capture.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/wayland/src/winit/capture.rs')
-rw-r--r--crates/wayland/src/winit/capture.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/wayland/src/winit/capture.rs b/crates/wayland/src/winit/capture.rs
index 6e03dd8..5eeabe1 100644
--- a/crates/wayland/src/winit/capture.rs
+++ b/crates/wayland/src/winit/capture.rs
@@ -100,7 +100,7 @@ impl WaylandPlatform {
for id in self.wm.borrow().visible_windows_front_to_back().map(|w| w.id).collect::<Vec<_>>() {
// Matches the render loops: a capture must not show a frame the
// screen does not (see `window_has_content`).
- if !crate::state::CompState::has_content(&self.state.windows_shown_once, &self.state.id_to_window, id) {
+ if !crate::state::CompState::has_content(&self.state.awaiting_first_buffer, id) {
continue;
}
let Some(w) = self.wm.borrow().window(id).cloned() else { continue };