diff --git a/Cargo.toml b/Cargo.toml index c7a4ec83..5f2b9aa4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -70,7 +70,7 @@ calloop = "0.13.0" libc = "0.2.64" memmap2 = "0.9.0" percent-encoding = "2.0" -rustix = { version = "0.38.4", default-features = false } +rustix = { version = "1.0.7", default-features = false } sctk = { package = "smithay-client-toolkit", version = "0.19.2", default-features = false, features = [ "calloop", ] } diff --git a/winit-wayland/Cargo.toml b/winit-wayland/Cargo.toml index a4a6be96..ad8be20c 100644 --- a/winit-wayland/Cargo.toml +++ b/winit-wayland/Cargo.toml @@ -32,7 +32,7 @@ ahash.workspace = true calloop.workspace = true libc.workspace = true memmap2.workspace = true -rustix = { workspace = true, features = ["std", "system", "thread", "process"] } +rustix = { workspace = true, features = ["std", "system", "thread", "process", "event", "pipe"] } sctk.workspace = true sctk-adwaita = { workspace = true, optional = true } wayland-backend.workspace = true diff --git a/winit-wayland/src/event_loop/mod.rs b/winit-wayland/src/event_loop/mod.rs index 525b0e8e..ee6b4e8e 100644 --- a/winit-wayland/src/event_loop/mod.rs +++ b/winit-wayland/src/event_loop/mod.rs @@ -792,7 +792,7 @@ impl PumpEventNotifier { if Ok(1) == rustix::io::read(read.as_fd(), &mut [0u8; 1]) { break 'outer; } - let _ = rustix::event::poll(&mut [poll_fd, pipe_poll_fd], -1); + let _ = rustix::event::poll(&mut [poll_fd, pipe_poll_fd], None); // Non-blocking read the connection. let _ = read_guard.read_without_dispatch(); }