Initial support for idle notify and idle ihibit
This commit is contained in:
parent
c4fc91d6e9
commit
19ba568f02
6 changed files with 85 additions and 3 deletions
12
src/wayland/handlers/idle_notify.rs
Normal file
12
src/wayland/handlers/idle_notify.rs
Normal 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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue