input: Implement focus switched on tiling layout

This commit is contained in:
Victoria Brekenfeld 2022-03-30 23:08:35 +02:00
parent f7ac9654d1
commit 69c71179d4
7 changed files with 336 additions and 166 deletions

View file

@ -302,9 +302,15 @@ impl Common {
*num,
);
}
Action::Focus(focus) => match focus {
_ => { /* TODO */ }
},
Action::Focus(focus) => {
let current_output = active_output(seat, &self);
self.shell.move_focus(
seat,
&current_output,
*focus,
self.seats.iter(),
);
}
Action::Orientation(orientation) => {
let output = active_output(seat, &self);
self.shell.set_orientation(