1
0
Fork 0
forked from wry/wry

autocommit 2022-04-23 00:55:20 CEST

This commit is contained in:
Julian Orth 2022-04-23 00:55:20 +02:00
parent 436f383cd6
commit e3b3d848c3
32 changed files with 1773 additions and 2451 deletions

View file

@ -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);

View file

@ -211,6 +211,10 @@ pub enum ClientMessage<'a> {
seat: Seat,
workspace: Workspace,
},
SetWorkspace {
seat: Seat,
workspace: Workspace,
},
GetTimer {
name: &'a str,
},

View file

@ -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));