1
0
Fork 0
forked from wry/wry

reexec: close evdev fds in a separate process

This commit is contained in:
Julian Orth 2025-04-24 17:44:52 +02:00
parent ca2201edeb
commit 419d75949c
3 changed files with 78 additions and 3 deletions

View file

@ -277,6 +277,18 @@ impl Backend for MetalBackend {
fn supports_presentation_feedback(&self) -> bool {
true
}
fn get_input_fds(&self) -> Vec<Rc<OwnedFd>> {
let mut res = vec![];
for dev in &*self.device_holder.input_devices.borrow() {
if let Some(dev) = dev {
if let Some(fd) = dev.fd.get() {
res.push(fd);
}
}
}
res
}
}
fn dup_fd(fd: c::c_int) -> Result<Rc<OwnedFd>, MetalError> {