Create shm buffer directly instead of using RawPool

Currently needed if we want an fd to pass to iced-sctk for subsurfaces.
Rather than a wl_buffer.

It would be good if this logic and the dmabuf type could be shared in
some crate.
This commit is contained in:
Ian Douglas Scott 2024-01-26 14:13:58 -08:00
parent d50c1f13f6
commit 2164c1ea5a
3 changed files with 79 additions and 10 deletions

1
Cargo.lock generated
View file

@ -938,6 +938,7 @@ dependencies = [
"memmap2 0.9.4",
"once_cell",
"rust-embed",
"rustix 0.38.30",
"tokio",
"wayland-protocols 0.31.0",
"zbus",