cosmic-comp/src/wayland/handlers/idle_notify.rs
2024-05-03 14:38:58 +02:00

12 lines
345 B
Rust

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);