Updated rest of the code to use softbuffer name instead of swbuf
This commit is contained in:
parent
ddb1b9bfeb
commit
9023b096d7
6 changed files with 11 additions and 11 deletions
|
|
@ -28,7 +28,7 @@ pub(super) struct WaylandBuffer {
|
|||
|
||||
impl WaylandBuffer {
|
||||
pub fn new(shm: &wl_shm::WlShm, width: i32, height: i32, qh: &QueueHandle<State>) -> Self {
|
||||
let name = unsafe { CStr::from_bytes_with_nul_unchecked("swbuf\0".as_bytes()) };
|
||||
let name = unsafe { CStr::from_bytes_with_nul_unchecked("softbuffer\0".as_bytes()) };
|
||||
let tempfile_fd = memfd_create(name, MemFdCreateFlag::MFD_CLOEXEC)
|
||||
.expect("Failed to create memfd to store buffer.");
|
||||
let tempfile = unsafe { File::from_raw_fd(tempfile_fd) };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue