aboutsummaryrefslogtreecommitdiff
path: root/sway/tree
diff options
context:
space:
mode:
Diffstat (limited to 'sway/tree')
-rw-r--r--sway/tree/workspace.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/tree/workspace.c b/sway/tree/workspace.c
index 3ad5de06..5568d1f5 100644
--- 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;
}