diff --git a/src/wayland/runtime/drm.rs b/src/wayland/runtime/drm.rs index 3befa173..3f2fa1af 100644 --- a/src/wayland/runtime/drm.rs +++ b/src/wayland/runtime/drm.rs @@ -3,7 +3,6 @@ use std::collections::HashMap; use std::process::exit; use std::sync::{Arc, Mutex}; -use std::time::Duration; use smithay::backend::drm::{DrmDevice, DrmEvent}; use smithay::backend::libinput::LibinputInputBackend; @@ -292,7 +291,7 @@ fn run_event_loop( let pointer_handle = state.pointer.clone(); event_loop - .run(Duration::from_millis(16), state, move |state| { + .run(None, state, move |state| { process_completed_crtcs(state, shared, output_surfaces); process_pending_libinput_events(state, shared); diff --git a/src/wayland/runtime/winit.rs b/src/wayland/runtime/winit.rs index 90c1e48a..a9d4a61e 100644 --- a/src/wayland/runtime/winit.rs +++ b/src/wayland/runtime/winit.rs @@ -4,7 +4,6 @@ //! Wayland or X11 session. use std::process::exit; -use std::time::Duration; use smithay::backend::input::InputEvent; use smithay::backend::renderer::ImportDma; @@ -87,7 +86,7 @@ pub fn run() -> ! { let loop_signal: LoopSignal = event_loop.get_signal(); event_loop - .run(Duration::from_millis(16), &mut state, move |mut state| { + .run(None, &mut state, move |mut state| { winit_loop.dispatch_new_events(|event| match event { WinitEvent::Resized { size, .. } => { crate::wayland::input::handle_resize(&mut state.wm, &output, size.w, size.h);