reexec: close evdev fds in a separate process
This commit is contained in:
parent
ca2201edeb
commit
419d75949c
3 changed files with 78 additions and 3 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue