1
0
Fork 0
forked from wry/wry

config: add Seat.get_keyboard_output and Connector.workspaces

This commit is contained in:
khyperia 2025-04-26 15:48:02 +02:00 committed by Julian Orth
parent b83bf0657b
commit 00735e4621
7 changed files with 127 additions and 30 deletions

View file

@ -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,