diff options
Diffstat (limited to 'crates/wayland/src/winit')
| -rw-r--r-- | crates/wayland/src/winit/capture.rs | 2 | ||||
| -rw-r--r-- | crates/wayland/src/winit/connect.rs | 2 | ||||
| -rw-r--r-- | crates/wayland/src/winit/render.rs | 2 |
3 files changed, 3 insertions, 3 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 }; diff --git a/crates/wayland/src/winit/connect.rs b/crates/wayland/src/winit/connect.rs index cca991c..1f2f876 100644 --- a/crates/wayland/src/winit/connect.rs +++ b/crates/wayland/src/winit/connect.rs @@ -168,7 +168,7 @@ impl WaylandPlatform { dead_layer_surfaces: HashSet::new(), hidden_layer_surfaces: HashMap::new(), layer_surfaces_shown_once: HashSet::new(), - windows_shown_once: HashSet::new(), + awaiting_first_buffer: HashSet::new(), decorations: HashMap::new(), border_top_decorations: HashMap::new(), border_bottom_decorations: HashMap::new(), diff --git a/crates/wayland/src/winit/render.rs b/crates/wayland/src/winit/render.rs index 02ee322..3138d45 100644 --- a/crates/wayland/src/winit/render.rs +++ b/crates/wayland/src/winit/render.rs @@ -237,7 +237,7 @@ impl WaylandPlatform { let mut occluders: Vec<srdwm_core::Rect> = Vec::with_capacity(ids.len()); for id in ids { // See `window_has_content`: no buffer yet means no frame yet. - 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 }; |