From fad73dba9f2351177996c352d8385904608535d5 Mon Sep 17 00:00:00 2001 From: MaxVerevkin Date: Sun, 14 May 2023 15:17:46 +0300 Subject: cargo update --- src/state.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/state.rs') diff --git a/src/state.rs b/src/state.rs index b9a5ac1..de99179 100644 --- a/src/state.rs +++ b/src/state.rs @@ -61,8 +61,6 @@ impl State { conn.add_registry_cb(wl_registry_cb); - let wl_shm = globals.bind(conn, 1..=1).expect("could not bind wl_shm"); - let cursor_theme = CursorTheme::new(None, None); let default_cursor = cursor_theme .get_image("default") @@ -82,7 +80,7 @@ impl State { bars: Vec::new(), shared_state: SharedState { - shm: ShmAlloc::new(wl_shm), + shm: ShmAlloc::bind(conn, globals).unwrap(), config, status_cmd, blocks_cache: BlocksCache::default(), -- cgit v1.3.1