mirror of
https://github.com/swaywm/sway.git
synced 2024-11-17 05:33:17 +00:00
workspace_split: focus middle if workspace focused
In workspace_split, the middle container that wraps the workspace's children should be focused for any seat that is focusing the workspace
This commit is contained in:
parent
75a7b02529
commit
f36240208c
|
@ -763,6 +763,13 @@ struct sway_container *workspace_split(struct sway_workspace *workspace,
|
|||
workspace->layout = layout;
|
||||
middle->layout = old_layout;
|
||||
|
||||
struct sway_seat *seat;
|
||||
wl_list_for_each(seat, &server.input->seats, link) {
|
||||
if (seat_get_focus(seat) == &workspace->node) {
|
||||
seat_set_focus(seat, &middle->node);
|
||||
}
|
||||
}
|
||||
|
||||
return middle;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue