1
0
Fork 0
forked from wry/wry

autocommit 2022-02-20 21:53:46 CET

This commit is contained in:
Julian Orth 2022-02-20 21:53:46 +01:00
parent fbb389b5e9
commit 292fa50fe7
18 changed files with 594 additions and 280 deletions

View file

@ -196,6 +196,10 @@ impl Client {
}
}
pub fn toggle_floating(&self, seat: Seat) {
self.send(&ClientMessage::ToggleFloating { seat });
}
pub fn set_title_color(&self, color: Color) {
self.send(&ClientMessage::SetTitleColor { color });
}

View file

@ -122,6 +122,9 @@ pub enum ClientMessage<'a> {
FocusParent {
seat: Seat,
},
ToggleFloating {
seat: Seat,
},
}
#[derive(Encode, Decode, Debug)]

View file

@ -138,6 +138,10 @@ impl Seat {
pub fn focus_parent(self) {
get!().focus_parent(self);
}
pub fn toggle_floating(self) {
get!().toggle_floating(self);
}
}
pub fn get_seats() -> Vec<Seat> {