diff options
| author | srdusr <[email protected]> | 2026-08-30 21:15:00 +0200 |
|---|---|---|
| committer | srdusr <[email protected]> | 2026-08-30 21:15:00 +0200 |
| commit | 9a7f30050f8efc52340e698031a7a55a105e72c4 (patch) | |
| tree | 16e9becf63a51e706034bcd014320cdaafbe8b52 /crates/wayland/src/decoration/titlebar.rs | |
| parent | f2f9ed1b3f9c49b323ce591eb72a406058d324a4 (diff) | |
| download | srdwm-main.tar.gz srdwm-main.zip | |
Diffstat (limited to 'crates/wayland/src/decoration/titlebar.rs')
| -rw-r--r-- | crates/wayland/src/decoration/titlebar.rs | 2 |
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); } |