diff options
| author | MaxVerevkin <maxxverrr@gmail.com> | 2023-04-20 17:34:49 +0300 |
|---|---|---|
| committer | MaxVerevkin <maxxverrr@gmail.com> | 2023-04-20 17:34:49 +0300 |
| commit | a605021fe95716264ac1d2a03248f36b64a6fa21 (patch) | |
| tree | df7e12b299fff22f6ca9f847cb7232db5a3945e4 /src/bar.rs | |
| parent | 08a5f2a976c4c71aad2011a01fff5782fd5e23e7 (diff) | |
| download | i3bar-mango-a605021fe95716264ac1d2a03248f36b64a6fa21.tar.gz | |
update deps
Diffstat (limited to 'src/bar.rs')
| -rw-r--r-- | src/bar.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,7 +1,6 @@ use pangocairo::cairo; use wayrs_client::connection::Connection; -use wayrs_client::proxy::Proxy; use wayrs_utils::shm_alloc::BufferSpec; use crate::blocks_cache::ComputedBlock; @@ -234,7 +233,8 @@ impl Bar { self.viewport .set_destination(conn, self.width as i32, self.height as i32); - self.surface.attach(conn, buffer.into_wl_buffer(), 0, 0); + self.surface + .attach(conn, Some(buffer.into_wl_buffer()), 0, 0); self.surface.damage(conn, 0, 0, i32::MAX, i32::MAX); self.surface.commit(conn); } @@ -283,7 +283,7 @@ impl Bar { pub fn hide(&mut self, conn: &mut Connection<State>) { self.hidden = true; self.mapped = false; - self.surface.attach(conn, WlBuffer::null(), 0, 0); + self.surface.attach(conn, None, 0, 0); self.surface.commit(conn); } } |
