wayland: Rework handlers and protocols into separate files
This commit is contained in:
parent
d182d5b388
commit
06d5989223
25 changed files with 3303 additions and 909 deletions
21
src/wayland/handlers/toplevel_info.rs
Normal file
21
src/wayland/handlers/toplevel_info.rs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
use crate::{
|
||||
state::State,
|
||||
wayland::protocols::toplevel_info::{
|
||||
ToplevelInfoHandler,
|
||||
ToplevelInfoState,
|
||||
delegate_toplevel_info,
|
||||
},
|
||||
};
|
||||
|
||||
impl ToplevelInfoHandler for State {
|
||||
fn toplevel_info_state(&self) -> &ToplevelInfoState<State> {
|
||||
&self.common.shell.toplevel_info_state
|
||||
}
|
||||
fn toplevel_info_state_mut(&mut self) -> &mut ToplevelInfoState<State> {
|
||||
&mut self.common.shell.toplevel_info_state
|
||||
}
|
||||
}
|
||||
|
||||
delegate_toplevel_info!(State);
|
||||
Loading…
Add table
Add a link
Reference in a new issue