1
0
Fork 0
forked from wry/wry

autocommit 2022-04-08 23:02:38 CEST

This commit is contained in:
Julian Orth 2022-04-08 23:02:38 +02:00
parent 0bd9a70e69
commit 21e2216ce5
40 changed files with 587 additions and 255 deletions

View file

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

View file

@ -146,6 +146,9 @@ pub enum ClientMessage<'a> {
seat: Seat,
axis: Axis,
},
Close {
seat: Seat,
},
FocusParent {
seat: Seat,
},

View file

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

View file

@ -25,6 +25,7 @@ pub enum LogLevel {
#[derive(Encode, Decode, Copy, Clone, Debug, Eq, PartialEq)]
pub enum Direction {
Unspecified,
Left,
Down,
Up,