This commit is contained in:
Ankit Raj Pandey 2024-09-11 15:13:26 +01:00 committed by GitHub
commit fc3d1f4a89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -602,7 +602,9 @@ static struct cmd_results *cmd_move_container(bool no_auto_back_and_forth,
focus = seat_get_focus_inactive(seat, &old_parent->node);
}
if (!focus && old_ws) {
focus = seat_get_focus_inactive(seat, &old_ws->node);
struct sway_container *container =
seat_get_focus_inactive_view(seat, &old_ws->node);
focus = &container->node;
}
}
seat_set_focus(seat, focus);