Accept -listenfd and pass on to Xwayland

This commit is contained in:
Ivan Molodetskikh 2025-06-03 17:33:59 +03:00 committed by Supreeeme
parent ac391db415
commit 9e48795087
3 changed files with 64 additions and 11 deletions

View file

@ -3,7 +3,7 @@ use rustix::process::{Pid, Signal, WaitOptions};
use std::collections::HashMap;
use std::io::Write;
use std::mem::ManuallyDrop;
use std::os::fd::{AsRawFd, BorrowedFd};
use std::os::fd::{AsRawFd, BorrowedFd, OwnedFd};
use std::os::unix::net::UnixStream;
use std::sync::{
atomic::{AtomicBool, Ordering},
@ -72,6 +72,10 @@ impl xwls::RunData for TestData {
None
}
fn listenfds(&mut self) -> Vec<OwnedFd> {
Vec::new()
}
fn server(&self) -> Option<UnixStream> {
let mut server = self.server.lock().unwrap();
assert!(server.is_some());