aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-08-07 12:04:03 -0400
committerGitHub <noreply@github.com>2016-08-07 12:04:03 -0400
commit9e37a13d7b8688039184f8d7d9c67882f2e8e6c7 (patch)
treea4ccecdad4498b5f632670d9e8e6f76b6419cbd3
parente8ca63702ef370d968cc3bc3a420698ee13c876e (diff)
parent41b5c6d1a9e19ecb0ee0eaeefa4c1ed278de760f (diff)
downloadsway-9e37a13d7b8688039184f8d7d9c67882f2e8e6c7.tar.xz
Merge pull request #842 from thejan2009/bug/move-workspace-sort-output
Sort workspaces when moving workspace to output
-rw-r--r--sway/layout.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/layout.c b/sway/layout.c
index 42954ebc..01c8e4e3 100644
--- a/sway/layout.c
+++ b/sway/layout.c
@@ -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);