shell/tiling: Add option to toggle orientation
This commit is contained in:
parent
01b34aadd2
commit
0c47631d9b
5 changed files with 25 additions and 5 deletions
|
|
@ -373,12 +373,22 @@ impl State {
|
|||
workspace.fullscreen_toggle(&window, ¤t_output);
|
||||
}
|
||||
}
|
||||
Action::ToggleOrientation => {
|
||||
let output = seat.active_output();
|
||||
let workspace = self.common.shell.active_space_mut(&output);
|
||||
let focus_stack = workspace.focus_stack.get(seat);
|
||||
workspace.tiling_layer.update_orientation(
|
||||
None,
|
||||
&seat,
|
||||
focus_stack.iter(),
|
||||
);
|
||||
}
|
||||
Action::Orientation(orientation) => {
|
||||
let output = seat.active_output();
|
||||
let workspace = self.common.shell.active_space_mut(&output);
|
||||
let focus_stack = workspace.focus_stack.get(seat);
|
||||
workspace.tiling_layer.update_orientation(
|
||||
orientation,
|
||||
Some(orientation),
|
||||
&seat,
|
||||
focus_stack.iter(),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue