autocommit 2022-04-08 23:02:38 CEST
This commit is contained in:
parent
0bd9a70e69
commit
21e2216ce5
40 changed files with 587 additions and 255 deletions
|
|
@ -296,6 +296,10 @@ impl Client {
|
|||
self.send(&ClientMessage::CreateSplit { seat, axis });
|
||||
}
|
||||
|
||||
pub fn close(&self, seat: Seat) {
|
||||
self.send(&ClientMessage::Close { seat });
|
||||
}
|
||||
|
||||
pub fn focus_parent(&self, seat: Seat) {
|
||||
self.send(&ClientMessage::FocusParent { seat });
|
||||
}
|
||||
|
|
|
|||
|
|
@ -146,6 +146,9 @@ pub enum ClientMessage<'a> {
|
|||
seat: Seat,
|
||||
axis: Axis,
|
||||
},
|
||||
Close {
|
||||
seat: Seat,
|
||||
},
|
||||
FocusParent {
|
||||
seat: Seat,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -117,6 +117,10 @@ impl Seat {
|
|||
get!().focus_parent(self);
|
||||
}
|
||||
|
||||
pub fn close(self) {
|
||||
get!().close(self);
|
||||
}
|
||||
|
||||
pub fn toggle_floating(self) {
|
||||
get!().toggle_floating(self);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ pub enum LogLevel {
|
|||
|
||||
#[derive(Encode, Decode, Copy, Clone, Debug, Eq, PartialEq)]
|
||||
pub enum Direction {
|
||||
Unspecified,
|
||||
Left,
|
||||
Down,
|
||||
Up,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue