From 41b5c6d1a9e19ecb0ee0eaeefa4c1ed278de760f Mon Sep 17 00:00:00 2001 From: "D.B" Date: Sun, 7 Aug 2016 17:32:18 +0200 Subject: [PATCH] Sort workspaces when moving workspace to output This should fix #839 --- sway/layout.c | 1 + 1 file changed, 1 insertion(+) 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);