diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-08-07 12:04:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-07 12:04:03 -0400 |
commit | 9e37a13d7b8688039184f8d7d9c67882f2e8e6c7 (patch) | |
tree | a4ccecdad4498b5f632670d9e8e6f76b6419cbd3 | |
parent | Merge pull request #841 from thejan2009/tabbed-title-avoiding-null (diff) | |
parent | Sort workspaces when moving workspace to output (diff) | |
download | sway-9e37a13d7b8688039184f8d7d9c67882f2e8e6c7.tar.gz sway-9e37a13d7b8688039184f8d7d9c67882f2e8e6c7.tar.zst sway-9e37a13d7b8688039184f8d7d9c67882f2e8e6c7.zip |
Merge pull request #842 from thejan2009/bug/move-workspace-sort-output
Sort workspaces when moving workspace to output
-rw-r--r-- | sway/layout.c | 1 |
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) { | |||
363 | // reset container geometry | 363 | // reset container geometry |
364 | workspace->width = workspace->height = 0; | 364 | workspace->width = workspace->height = 0; |
365 | add_child(destination, workspace); | 365 | add_child(destination, workspace); |
366 | sort_workspaces(destination); | ||
366 | // Refocus destination (change to new workspace) | 367 | // Refocus destination (change to new workspace) |
367 | set_focused_container(get_focused_view(workspace)); | 368 | set_focused_container(get_focused_view(workspace)); |
368 | arrange_windows(destination, -1, -1); | 369 | arrange_windows(destination, -1, -1); |