floating mouse tiling: add corner tiling, implement designs

This commit is contained in:
Ryan Brue 2024-03-21 11:39:16 -05:00 committed by Victoria Brekenfeld
parent fc2173d028
commit 3837e56382
2 changed files with 121 additions and 68 deletions

View file

@ -899,13 +899,14 @@ impl FloatingLayout {
direction: Direction,
seat: &Seat<State>,
layer: ManagedLayer,
theme: cosmic::Theme,
theme: &cosmic::Theme,
element: &CosmicMapped,
) -> MoveResult {
match element.handle_move(direction) {
StackMoveResult::Handled => MoveResult::Done,
StackMoveResult::MoveOut(surface, loop_handle) => {
let mapped: CosmicMapped = CosmicWindow::new(surface, loop_handle, theme).into();
let mapped: CosmicMapped =
CosmicWindow::new(surface, loop_handle, theme.clone()).into();
let output = seat.active_output();
let pos = self.space.element_geometry(element).unwrap().loc
+ match direction {
@ -1084,7 +1085,7 @@ impl FloatingLayout {
return MoveResult::None;
};
self.move_element(direction, seat, layer, theme, &focused.clone())
self.move_element(direction, seat, layer, &theme, &focused.clone())
}
pub fn mapped(&self) -> impl Iterator<Item = &CosmicMapped> {