diff --git a/src/catacomb.rs b/src/catacomb.rs index 673a345..2b46e94 100644 --- a/src/catacomb.rs +++ b/src/catacomb.rs @@ -450,9 +450,11 @@ impl Catacomb { trace_error!(self.event_loop.disable(&self.accelerometer_token)); } else if !self.windows.orientation_locked() { trace_error!(self.event_loop.enable(&self.accelerometer_token)); + } - // Count wakeup as activity, to ensure that clients like wayidle receive a - // resume and new idle events after waking the monitor back up. + // Count wakeup as activity, to ensure that clients like wayidle receive a + // resume and new idle events after waking the monitor back up. + if !on { self.idle_notifier_state.notify_activity(&self.seat); } diff --git a/src/input.rs b/src/input.rs index 220847b..403808a 100644 --- a/src/input.rs +++ b/src/input.rs @@ -449,6 +449,7 @@ impl Catacomb { self.touch_state.last_tap = Some((Instant::now(), event.position)); }, + // TODO: Update idle timeout. Some(TouchAction::DoubleTap) => self.set_display_status(true), _ => (), }