sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit f36240208c57124a88cdee18fb81fa3fc69e0f0a
parent 75a7b02529bc1e3d77b46200ab1d2028929fb5fe
Author: Brian Ashworth <bosrsf04@gmail.com>
Date:   Tue,  6 Aug 2019 04:21:44 -0400

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

Diffstat:
Msway/tree/workspace.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/sway/tree/workspace.c b/sway/tree/workspace.c @@ -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; }