autocommit 2022-04-23 00:55:20 CEST
This commit is contained in:
parent
436f383cd6
commit
e3b3d848c3
32 changed files with 1773 additions and 2451 deletions
|
|
@ -270,6 +270,10 @@ impl Client {
|
|||
self.send(&ClientMessage::ShowWorkspace { seat, workspace });
|
||||
}
|
||||
|
||||
pub fn set_workspace(&self, seat: Seat, workspace: Workspace) {
|
||||
self.send(&ClientMessage::SetWorkspace { seat, workspace });
|
||||
}
|
||||
|
||||
pub fn split(&self, seat: Seat) -> Axis {
|
||||
let res = self.send_with_response(&ClientMessage::GetSplit { seat });
|
||||
get_response!(res, Axis::Horizontal, GetSplit, axis);
|
||||
|
|
|
|||
|
|
@ -211,6 +211,10 @@ pub enum ClientMessage<'a> {
|
|||
seat: Seat,
|
||||
workspace: Workspace,
|
||||
},
|
||||
SetWorkspace {
|
||||
seat: Seat,
|
||||
workspace: Workspace,
|
||||
},
|
||||
GetTimer {
|
||||
name: &'a str,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -129,6 +129,10 @@ impl Seat {
|
|||
get!().show_workspace(self, workspace)
|
||||
}
|
||||
|
||||
pub fn set_workspace(self, workspace: Workspace) {
|
||||
get!().set_workspace(self, workspace)
|
||||
}
|
||||
|
||||
pub fn toggle_fullscreen(self) {
|
||||
let c = get!();
|
||||
c.set_fullscreen(self, !c.get_fullscreen(self));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue