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 | |
| parent | fef1387a93dfbe4759c59925a55e219068a5c7d3 (diff) | |
| download | i3bar-mango-fad73dba9f2351177996c352d8385904608535d5.tar.gz | |
cargo update
Diffstat (limited to 'src')
| -rw-r--r-- | src/protocol.rs | 2 | ||||
| -rw-r--r-- | src/state.rs | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/src/protocol.rs b/src/protocol.rs index e8f464e..8e9a217 100644 --- a/src/protocol.rs +++ b/src/protocol.rs @@ -1,5 +1,3 @@ -#![allow(clippy::enum_variant_names)] - use wayrs_client; pub use wayrs_client::protocol::*; pub use wayrs_protocols::fractional_scale_v1::*; 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(), |
