config: add Seat.get_keyboard_output and Connector.workspaces
This commit is contained in:
parent
b83bf0657b
commit
00735e4621
7 changed files with 127 additions and 30 deletions
|
|
@ -401,6 +401,10 @@ impl WlSeatGlobal {
|
|||
self.cursor_user_group.latest_output()
|
||||
}
|
||||
|
||||
pub fn get_keyboard_output(&self) -> Option<Rc<OutputNode>> {
|
||||
self.keyboard_node.get().node_output()
|
||||
}
|
||||
|
||||
pub fn set_workspace(&self, ws: &Rc<WorkspaceNode>) {
|
||||
let tl = match self.keyboard_node.get().node_toplevel() {
|
||||
Some(tl) => tl,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue