deps: bump rustix to version 1
This commit is contained in:
parent
a9188e70bd
commit
e827c42d2d
6 changed files with 122 additions and 93 deletions
|
|
@ -11,7 +11,7 @@ use crate::{X11Selection, XConnection};
|
|||
use clientside::MyWorld;
|
||||
use hecs::{Entity, World};
|
||||
use log::{debug, warn};
|
||||
use rustix::event::{poll, PollFd, PollFlags};
|
||||
use rustix::event::{poll, PollFd, PollFlags, Timespec};
|
||||
use smithay_client_toolkit::activation::ActivationState;
|
||||
use std::collections::{HashMap, HashSet};
|
||||
use std::ops::{Deref, DerefMut};
|
||||
|
|
@ -569,7 +569,11 @@ impl<C: XConnection> ServerState<C> {
|
|||
if let Some(r) = self.queue.prepare_read() {
|
||||
let fd = r.connection_fd();
|
||||
let pollfd = PollFd::new(&fd, PollFlags::IN);
|
||||
if poll(&mut [pollfd], 0).unwrap() > 0 {
|
||||
let timeout = Some(&Timespec {
|
||||
tv_sec: 0,
|
||||
tv_nsec: 0,
|
||||
});
|
||||
if poll(&mut [pollfd], timeout).unwrap() > 0 {
|
||||
let _ = r.read();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue