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
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue