shell: Rewrite get_focused_output to properly account for groups

This commit is contained in:
Victoria Brekenfeld 2024-09-10 19:38:48 +02:00
parent 0d048b1a8e
commit b111c9ff48
2 changed files with 94 additions and 12 deletions

View file

@ -268,6 +268,7 @@ fn update_focus_state(
target.cloned(),
serial.unwrap_or_else(|| SERIAL_COUNTER.next_serial()),
);
std::mem::drop(keyboard);
//update the focused output or set it to the active output
if target.is_some() {
@ -280,7 +281,8 @@ fn update_focus_state(
.shell
.read()
.unwrap()
.get_focused_output(target.unwrap()),
.get_output_for_focus(seat)
.as_ref(),
)
} else {
seat.set_focused_output(None);