aboutsummaryrefslogtreecommitdiff
path: root/src/input/mod.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2025-02-17 09:09:48 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2025-02-17 09:09:59 +0300
commitd27d6a504d9d59ffcf01ea9a1ee0668f1c6d3eef (patch)
tree7e92049956c6678cd6e2606abdf8edf183181600 /src/input/mod.rs
parentec5144feca1fce94329b51796979c5c2e3eead24 (diff)
downloadniri-d27d6a504d9d59ffcf01ea9a1ee0668f1c6d3eef.tar.gz
niri-d27d6a504d9d59ffcf01ea9a1ee0668f1c6d3eef.tar.bz2
niri-d27d6a504d9d59ffcf01ea9a1ee0668f1c6d3eef.zip
Make idle notify lazy
Diffstat (limited to 'src/input/mod.rs')
-rw-r--r--src/input/mod.rs9
1 files changed, 2 insertions, 7 deletions
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();
}
}