Initial support for idle notify and idle ihibit

This commit is contained in:
Mattias Eriksson 2024-04-19 14:57:17 +02:00 committed by Victoria Brekenfeld
parent c4fc91d6e9
commit 19ba568f02
6 changed files with 85 additions and 3 deletions

View file

@ -0,0 +1,12 @@
use smithay::{delegate_idle_notify, wayland::idle_notify::IdleNotifierHandler};
use crate::state::State;
impl IdleNotifierHandler for State {
fn idle_notifier_state(
&mut self,
) -> &mut smithay::wayland::idle_notify::IdleNotifierState<Self> {
&mut self.common.idle_notifier_state
}
}
delegate_idle_notify!(State);