diff --git a/CHANGELOG.md b/CHANGELOG.md index 98c0481625..2d5ef951e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ ### Backends -- **[Breaking]** WinitBackend: Upgrade to winit 0.17 +- **[Breaking]** WinitBackend: Upgrade to winit 0.18 ### Clients & Protocol diff --git a/Cargo.toml b/Cargo.toml index 3e6d8c7caa..6407095611 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,8 +18,8 @@ tempfile = "2.1.5" slog = "2.1.1" slog-stdlog = "3.0.2" libloading = "0.4.0" -wayland-client = { version = "0.20.5", optional = true } -winit = { version = "0.17.0", optional = true } +wayland-client = { version = "0.21.1", features = ["egl"], optional = true } +winit = { version = "0.18.0", optional = true } drm = { version = "^0.3.1", optional = true } gbm = { version = "^0.4.0", optional = true, default-features = false, features = ["drm-support"] } glium = { version = "0.19.0", optional = true, default-features = false } diff --git a/src/backend/drm/mod.rs b/src/backend/drm/mod.rs index a3ac9f16cd..39ec1ccc7c 100644 --- a/src/backend/drm/mod.rs +++ b/src/backend/drm/mod.rs @@ -245,7 +245,8 @@ use std::{ use wayland_server::{ calloop::{ generic::{EventedRawFd, Generic}, - LoopHandle, Ready, Source, + mio::Ready, + LoopHandle, Source, }, Display, }; @@ -558,7 +559,7 @@ where Ok(source) => Ok((source, device)), Err(e) => { let device = Rc::try_unwrap(device).unwrap_or_else(|_| unreachable!()); - Err((e, device.into_inner())) + Err((e.into(), device.into_inner())) } } } diff --git a/src/backend/libinput.rs b/src/backend/libinput.rs index 28a05c3125..6a5407eb44 100644 --- a/src/backend/libinput.rs +++ b/src/backend/libinput.rs @@ -18,7 +18,8 @@ use std::{ use wayland_server::calloop::{ generic::{EventedRawFd, Generic}, - LoopHandle, Ready, Source, + mio::Ready, + LoopHandle, Source, }; // No idea if this is the same across unix platforms @@ -612,6 +613,6 @@ pub fn libinput_bind( let backend = Rc::try_unwrap(fail_backend) .unwrap_or_else(|_| unreachable!()) .into_inner(); - (e, backend) + (e.into(), backend) }) } diff --git a/src/backend/session/dbus/logind.rs b/src/backend/session/dbus/logind.rs index ed10cc2427..147abd0519 100644 --- a/src/backend/session/dbus/logind.rs +++ b/src/backend/session/dbus/logind.rs @@ -51,7 +51,8 @@ use systemd::login; use wayland_server::calloop::{ generic::{Event, EventedRawFd, Generic}, - LoopHandle, Ready, Source, + mio::Ready, + InsertError, LoopHandle, Source, }; struct LogindSessionImpl { @@ -459,10 +460,10 @@ pub fn logind_session_bind( let mut notifier = notifier.clone(); move |evt, _| notifier.event(evt) }) - }).collect::<::std::result::Result>>, IoError>>() + }).collect::<::std::result::Result>>, InsertError>>>() .map_err(|err| { ( - err, + err.into(), LogindSessionNotifier { internal: internal_for_error, }, diff --git a/src/backend/session/direct.rs b/src/backend/session/direct.rs index fc17c456a6..f795b44c78 100644 --- a/src/backend/session/direct.rs +++ b/src/backend/session/direct.rs @@ -444,7 +444,7 @@ pub fn direct_session_bind( let notifier = Rc::try_unwrap(fail_notifier) .unwrap_or_else(|_| unreachable!()) .into_inner(); - (e, notifier) + (e.into(), notifier) })?; Ok(BoundDirectSession { source, notifier }) } diff --git a/src/backend/udev.rs b/src/backend/udev.rs index 1b9890c8ca..4055697e3c 100644 --- a/src/backend/udev.rs +++ b/src/backend/udev.rs @@ -29,7 +29,8 @@ use udev::{Context, Enumerator, Event, EventType, MonitorBuilder, MonitorSocket, use wayland_server::calloop::{ generic::{EventedRawFd, Generic}, - LoopHandle, Ready, Source, + mio::Ready, + LoopHandle, Source, }; /// Udev's `DrmDevice` type based on the underlying session @@ -280,9 +281,10 @@ where let handle = udev.handle.clone(); let mut source = Generic::from_raw_fd(fd); source.set_interest(Ready::readable()); - handle.insert_source(source, move |_, _| { - udev.process_events(); - }) + handle + .insert_source(source, move |_, _| { + udev.process_events(); + }).map_err(Into::into) } impl UdevBackend