1
1
mirror of https://github.com/swaywm/sway synced 2024-11-18 00:24:17 +01:00

Sort workspaces when moving workspace to output

This should fix #839
This commit is contained in:
D.B 2016-08-07 17:32:18 +02:00
parent e8ca63702e
commit 41b5c6d1a9

@ -363,6 +363,7 @@ void move_workspace_to(swayc_t* workspace, swayc_t* destination) {
// reset container geometry
workspace->width = workspace->height = 0;
add_child(destination, workspace);
sort_workspaces(destination);
// Refocus destination (change to new workspace)
set_focused_container(get_focused_view(workspace));
arrange_windows(destination, -1, -1);