Undone the previous change, used and official example and spli the coe to multiple files
This commit is contained in:
parent
3e20807d13
commit
f5c7071d89
17 changed files with 535 additions and 2561 deletions
15
src/provide_registry_state.rs
Normal file
15
src/provide_registry_state.rs
Normal 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];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue