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

@ -359,6 +359,14 @@ impl Seat {
get!(Workspace(0)).get_seat_workspace(self)
}
/// Returns the workspace that is currently active on the output that contains the seat's
/// keyboard focus.
///
/// If no such workspace exists, `exists` returns `false` for the returned workspace.
pub fn get_keyboard_workspace(self) -> Workspace {
get!(Workspace(0)).get_seat_keyboard_workspace(self)
}
/// Shows the workspace and sets the keyboard focus of the seat to that workspace.
///
/// If the workspace doesn't currently exist, it is created on the output that contains the