mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 07:56:31 +01:00
Merge pull request #842 from thejan2009/bug/move-workspace-sort-output
Sort workspaces when moving workspace to output
This commit is contained in:
commit
9e37a13d7b
1 changed files with 1 additions and 0 deletions
|
@ -363,6 +363,7 @@ void move_workspace_to(swayc_t* workspace, swayc_t* destination) {
|
||||||
// reset container geometry
|
// reset container geometry
|
||||||
workspace->width = workspace->height = 0;
|
workspace->width = workspace->height = 0;
|
||||||
add_child(destination, workspace);
|
add_child(destination, workspace);
|
||||||
|
sort_workspaces(destination);
|
||||||
// Refocus destination (change to new workspace)
|
// Refocus destination (change to new workspace)
|
||||||
set_focused_container(get_focused_view(workspace));
|
set_focused_container(get_focused_view(workspace));
|
||||||
arrange_windows(destination, -1, -1);
|
arrange_windows(destination, -1, -1);
|
||||||
|
|
Loading…
Reference in a new issue