diff --git a/rio-window/src/platform_impl/linux/wayland/seat/keyboard/mod.rs b/rio-window/src/platform_impl/linux/wayland/seat/keyboard/mod.rs index a0ad8124..76f28422 100644 --- a/rio-window/src/platform_impl/linux/wayland/seat/keyboard/mod.rs +++ b/rio-window/src/platform_impl/linux/wayland/seat/keyboard/mod.rs @@ -31,9 +31,6 @@ impl Dispatch for WinitState { _: &Connection, _: &QueueHandle, ) { - // Mirror macOS: any keyboard event keeps the 1-second post-input - // window alive so the Wayland frame-callback auto-loop emits - // RedrawRequested even on idle ticks during interaction. state.mark_input_received(); let seat_state = match state.seats.get_mut(&data.seat.id()) { diff --git a/rio-window/src/platform_impl/linux/wayland/seat/pointer/mod.rs b/rio-window/src/platform_impl/linux/wayland/seat/pointer/mod.rs index 29b5a894..5d44aec6 100644 --- a/rio-window/src/platform_impl/linux/wayland/seat/pointer/mod.rs +++ b/rio-window/src/platform_impl/linux/wayland/seat/pointer/mod.rs @@ -44,10 +44,6 @@ impl PointerHandler for WinitState { pointer: &WlPointer, events: &[PointerEvent], ) { - // Mirror macOS: any pointer activity keeps the 1-second - // post-input window alive so the Wayland frame-callback - // auto-loop emits RedrawRequested even on idle ticks during - // interaction (mouse drag, scroll, hover-to-select). self.mark_input_received(); let seat = pointer.winit_data().seat(); diff --git a/rio-window/src/platform_impl/linux/wayland/state.rs b/rio-window/src/platform_impl/linux/wayland/state.rs index 6f4463ba..3920e827 100644 --- a/rio-window/src/platform_impl/linux/wayland/state.rs +++ b/rio-window/src/platform_impl/linux/wayland/state.rs @@ -116,14 +116,7 @@ pub struct WinitState { /// send `AboutToWait` and normally wakeup the user. pub dispatched_events: bool, - /// Timestamp of the most recent input event. Mirrors macOS's - /// `last_input_timestamp` in - /// `rio-window/src/platform_impl/macos/window_delegate.rs:139`. - /// The Wayland frame-callback auto-loop checks - /// `should_present_after_input` (1 s window) before emitting a - /// `RedrawRequested` for ticks that have no other reason to render - /// — keeps ProMotion / 144Hz at peak refresh during interaction - /// without burning CPU on idle. + /// Timestamp of the most recent input event. pub last_input_timestamp: std::cell::Cell, }