srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/crates/wayland/src/decoration/titlebar.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/wayland/src/decoration/titlebar.rs')
-rw-r--r--crates/wayland/src/decoration/titlebar.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/wayland/src/decoration/titlebar.rs b/crates/wayland/src/decoration/titlebar.rs
index cc861ab..6ea2190 100644
--- a/crates/wayland/src/decoration/titlebar.rs
+++ b/crates/wayland/src/decoration/titlebar.rs
@@ -151,7 +151,7 @@ pub fn render_titlebar(
let traffic_lights = traffic_lights && !is_dialog;
let bg = rgb_to_bgra(background, 255);
let mut buf = vec![0u8; width * height * 4];
- for px in buf.chunks_exact_mut(4) {
+ for px in buf.as_chunks_mut::<4>().0 {
px.copy_from_slice(&bg);
}