Merge pull request #149 from rust-windowing/update-wayland

wayland: Update to wayland-client 0.31
This commit is contained in:
Ian Douglas Scott 2023-09-09 16:42:57 -07:00 committed by GitHub
commit 36618b63eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 9 deletions

View file

@ -2,7 +2,7 @@ use memmap2::MmapMut;
use std::{
ffi::CStr,
fs::File,
os::unix::prelude::{AsRawFd, FromRawFd},
os::unix::prelude::{AsFd, AsRawFd, FromRawFd},
slice,
sync::{
atomic::{AtomicBool, Ordering},
@ -107,7 +107,7 @@ impl WaylandBuffer {
let map = unsafe { map_file(&tempfile) };
// Create wayland shm pool and buffer
let pool = shm.create_pool(tempfile.as_raw_fd(), pool_size, qh, ());
let pool = shm.create_pool(tempfile.as_fd(), pool_size, qh, ());
let released = Arc::new(AtomicBool::new(true));
let buffer = pool.create_buffer(
0,