Undone the previous change, used and official example and spli the coe to multiple files

This commit is contained in:
maxstrb 2025-11-27 16:37:04 +01:00
parent 3e20807d13
commit f5c7071d89
17 changed files with 535 additions and 2561 deletions

View file

@ -0,0 +1,15 @@
use smithay_client_toolkit::{
output::OutputState,
registry::{ProvidesRegistryState, RegistryState},
registry_handlers,
seat::SeatState,
};
use crate::simple_layer::SimpleLayer;
impl ProvidesRegistryState for SimpleLayer {
fn registry(&mut self) -> &mut RegistryState {
&mut self.registry_state
}
registry_handlers![OutputState, SeatState];
}