1
0
Fork 0
forked from wry/wry

all: add support for hy3 like tiling

This commit is contained in:
kossLAN 2026-04-10 13:16:35 -04:00
parent a41dbae899
commit cea4187fc0
No known key found for this signature in database
21 changed files with 1237 additions and 48 deletions

View file

@ -2035,6 +2035,42 @@ impl ConfigClient {
radius
}
pub fn seat_toggle_expand(&self, seat: Seat) {
self.send(&ClientMessage::SeatToggleExpand { seat });
}
pub fn seat_toggle_tab(&self, seat: Seat) {
self.send(&ClientMessage::SeatToggleTab { seat });
}
pub fn seat_make_group(&self, seat: Seat, axis: Axis, ephemeral: bool) {
self.send(&ClientMessage::SeatMakeGroup {
seat,
axis,
ephemeral,
});
}
pub fn seat_change_group_opposite(&self, seat: Seat) {
self.send(&ClientMessage::SeatChangeGroupOpposite { seat });
}
pub fn seat_equalize(&self, seat: Seat, recursive: bool) {
self.send(&ClientMessage::SeatEqualize { seat, recursive });
}
pub fn set_autotile(&self, enabled: bool) {
self.send(&ClientMessage::SetAutotile { enabled });
}
pub fn set_tab_title_align(&self, align: u32) {
self.send(&ClientMessage::SetTabTitleAlign { align });
}
pub fn seat_move_tab(&self, seat: Seat, right: bool) {
self.send(&ClientMessage::SeatMoveTab { seat, right });
}
fn handle_msg(&self, msg: &[u8]) {
self.handle_msg2(msg);
self.dispatch_futures();

View file

@ -884,6 +884,34 @@ pub enum ClientMessage<'a> {
radius: f32,
},
GetCornerRadius,
SeatToggleExpand {
seat: Seat,
},
SeatToggleTab {
seat: Seat,
},
SeatMakeGroup {
seat: Seat,
axis: Axis,
ephemeral: bool,
},
SeatChangeGroupOpposite {
seat: Seat,
},
SeatEqualize {
seat: Seat,
recursive: bool,
},
SetAutotile {
enabled: bool,
},
SetTabTitleAlign {
align: u32,
},
SeatMoveTab {
seat: Seat,
right: bool,
},
}
#[derive(Serialize, Deserialize, Debug)]