summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar D.B <thejan.2009@gmail.com>2016-08-07 17:32:18 +0200
committerLibravatar D.B <thejan.2009@gmail.com>2016-08-07 17:32:18 +0200
commit41b5c6d1a9e19ecb0ee0eaeefa4c1ed278de760f (patch)
treea4ccecdad4498b5f632670d9e8e6f76b6419cbd3
parentMerge pull request #841 from thejan2009/tabbed-title-avoiding-null (diff)
downloadsway-41b5c6d1a9e19ecb0ee0eaeefa4c1ed278de760f.tar.gz
sway-41b5c6d1a9e19ecb0ee0eaeefa4c1ed278de760f.tar.zst
sway-41b5c6d1a9e19ecb0ee0eaeefa4c1ed278de760f.zip
Sort workspaces when moving workspace to output
This should fix #839
-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) {
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);