diff --git a/Cargo.toml b/Cargo.toml index e5e8d428fa6c..18c5faf64699 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -56,7 +56,7 @@ udev = { version = "0.9.0", optional = true } wayland-client = { version = "0.31.3", optional = true } wayland-cursor = { version = "0.31.3", optional = true } wayland-egl = { version = "0.32.0", optional = true } -wayland-protocols = { version = "0.32.4", features = ["unstable", "staging", "server"], optional = true } +wayland-protocols = { version = "0.32.5", features = ["unstable", "staging", "server"], optional = true } wayland-protocols-wlr = { version = "0.3.1", features = ["server"], optional = true } wayland-protocols-misc = { version = "0.3.1", features = ["server"], optional = true } wayland-server = { version = "0.31.0", optional = true } diff --git a/src/wayland/shm/handlers.rs b/src/wayland/shm/handlers.rs index 229abebddf39..61cf4fbf6f65 100644 --- a/src/wayland/shm/handlers.rs +++ b/src/wayland/shm/handlers.rs @@ -61,6 +61,7 @@ where let (pool, fd, size) = match request { Request::CreatePool { id: pool, fd, size } => (pool, fd, size), + Request::Release => return, _ => unreachable!(), }; diff --git a/src/wayland/shm/mod.rs b/src/wayland/shm/mod.rs index e44783535b8b..c40de8155891 100644 --- a/src/wayland/shm/mod.rs +++ b/src/wayland/shm/mod.rs @@ -154,7 +154,7 @@ impl ShmState { formats.insert(wl_shm::Format::Argb8888); formats.insert(wl_shm::Format::Xrgb8888); - let shm = display.create_global::(1, ()); + let shm = display.create_global::(2, ()); ShmState { formats, shm } }