diff options
| author | MaxVerevkin <maxxverrr@gmail.com> | 2023-05-14 15:17:46 +0300 |
|---|---|---|
| committer | MaxVerevkin <maxxverrr@gmail.com> | 2023-05-14 15:17:46 +0300 |
| commit | fad73dba9f2351177996c352d8385904608535d5 (patch) | |
| tree | 523931dbfe2929e41f23c7003a8e2cffd81ed519 /src/state.rs | |
| parent | fef1387a93dfbe4759c59925a55e219068a5c7d3 (diff) | |
| download | i3bar-mango-fad73dba9f2351177996c352d8385904608535d5.tar.gz | |
cargo update
Diffstat (limited to 'src/state.rs')
| -rw-r--r-- | src/state.rs | 4 |
1 files changed, 1 insertions, 3 deletions
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(), |
