From d27d6a504d9d59ffcf01ea9a1ee0668f1c6d3eef Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Mon, 17 Feb 2025 09:09:48 +0300 Subject: Make idle notify lazy --- src/input/mod.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/input/mod.rs') diff --git a/src/input/mod.rs b/src/input/mod.rs index d1ba853b..b38bc0e9 100644 --- a/src/input/mod.rs +++ b/src/input/mod.rs @@ -97,10 +97,7 @@ impl State { if self.niri.monitors_active { // Notify the idle-notifier of activity. if should_notify_activity(&event) { - let _span = tracy_client::span!("IdleNotifierState::notify_activity"); - self.niri - .idle_notifier_state - .notify_activity(&self.niri.seat); + self.niri.notify_activity(); } } else { // Power on monitors if they were off. @@ -109,9 +106,7 @@ impl State { // Notify the idle-notifier of activity only if we're also powering on the // monitors. - self.niri - .idle_notifier_state - .notify_activity(&self.niri.seat); + self.niri.notify_activity(); } } -- cgit