srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/crates/wayland/src/udev
diff options
context:
space:
mode:
Diffstat (limited to 'crates/wayland/src/udev')
-rw-r--r--crates/wayland/src/udev/capture.rs2
-rw-r--r--crates/wayland/src/udev/platform.rs2
-rw-r--r--crates/wayland/src/udev/render.rs4
3 files changed, 4 insertions, 4 deletions
diff --git a/crates/wayland/src/udev/capture.rs b/crates/wayland/src/udev/capture.rs
index 287c003..310c9f7 100644
--- a/crates/wayland/src/udev/capture.rs
+++ b/crates/wayland/src/udev/capture.rs
@@ -71,7 +71,7 @@ impl CompState {
for id in ids {
// Matches the render loops: a capture must not show a frame the
// screen does not (see `window_has_content`).
- if !Self::has_content(&self.windows_shown_once, &self.id_to_window, id) {
+ if !Self::has_content(&self.awaiting_first_buffer, id) {
continue;
}
let Some(w) = self.id_to_window.get(&id) else { continue };
diff --git a/crates/wayland/src/udev/platform.rs b/crates/wayland/src/udev/platform.rs
index 86307dc..d3c091c 100644
--- a/crates/wayland/src/udev/platform.rs
+++ b/crates/wayland/src/udev/platform.rs
@@ -256,7 +256,7 @@ impl UdevPlatform {
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/udev/render.rs b/crates/wayland/src/udev/render.rs
index a2cf367..cefd759 100644
--- a/crates/wayland/src/udev/render.rs
+++ b/crates/wayland/src/udev/render.rs
@@ -308,7 +308,7 @@ impl CompState {
// stand around empty desktop until the client paints,
// then jump when the placeholder size is replaced. See
// `window_has_content`.
- if !Self::has_content(&self.windows_shown_once, &self.id_to_window, id) {
+ if !Self::has_content(&self.awaiting_first_buffer, id) {
continue;
}
let Some(w) = self.wm.borrow().window(id).cloned() else { continue };
@@ -558,7 +558,7 @@ impl CompState {
for &id in &ids {
// See the GPU loop above: a window with no buffer yet has
// nothing for a frame to go around.
- if !Self::has_content(&self.windows_shown_once, &self.id_to_window, id) {
+ if !Self::has_content(&self.awaiting_first_buffer, id) {
continue;
}
let Some(w) = self.wm.borrow().window(id).cloned() else { continue };