summaryrefslogtreecommitdiff
path: root/src/bar.rs
diff options
context:
space:
mode:
authorMaxVerevkin <maxxverrr@gmail.com>2024-03-22 18:30:08 +0200
committerMaxVerevkin <maxxverrr@gmail.com>2024-03-22 18:30:08 +0200
commitd2623c5240824c40947b2ad585f75f362c262f86 (patch)
tree6151e4d1b474572155b5ed3e8eb09a138df27d49 /src/bar.rs
parent4a6379c7dd1c4a7bae1d16c25021614bea0ba631 (diff)
downloadi3bar-mango-d2623c5240824c40947b2ad585f75f362c262f86.tar.gz
update deps
Diffstat (limited to 'src/bar.rs')
-rw-r--r--src/bar.rs21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/bar.rs b/src/bar.rs
index fbbc297..f6ae7d0 100644
--- a/src/bar.rs
+++ b/src/bar.rs
@@ -164,15 +164,18 @@ impl Bar {
let width_f = self.width as f64;
let height_f = self.height as f64;
- let (buffer, canvas) = ss.shm.alloc_buffer(
- conn,
- BufferSpec {
- width: pix_width,
- height: pix_height,
- stride: pix_width * 4,
- format: wl_shm::Format::Argb8888,
- },
- );
+ let (buffer, canvas) = ss
+ .shm
+ .alloc_buffer(
+ conn,
+ BufferSpec {
+ width: pix_width,
+ height: pix_height,
+ stride: pix_width * 4,
+ format: wl_shm::Format::Argb8888,
+ },
+ )
+ .unwrap();
let cairo_surf = unsafe {
cairo::ImageSurface::create_for_data_unsafe(