@@ -79,7 +79,7 @@ void WorkspaceManager::destroyWorkspace(Workspace *workspace)
7979 setActiveWorkspace(m_allWorkspaces.count() ? *m_allWorkspaces.begin() : nullptr);
8080 }
8181 if (m_activeWorkspace) {
82− moveWorkspaceContentToWorkspace(workspace, m_activeWorkspace);
82+ moveWorkspaceContentToWorkspace(m_activeWorkspace, workspace);
8383 }
8484
8585 disconnect(workspace, 0, this, 0);
@@ -107,11 +107,11 @@ void WorkspaceManager::moveSurfaceToWorkspace(unity::shell::application::MirSurf
107107 }
108108}
109109
110−void WorkspaceManager::moveWorkspaceContentToWorkspace(Workspace *from, Workspace *to)
110+void WorkspaceManager::moveWorkspaceContentToWorkspace(Workspace *to, Workspace *from)
111111{
112112 auto surfaceManager = WindowManagerObjects::instance()->surfaceManager();
113113 if (surfaceManager) {
114− surfaceManager->moveWorkspaceContentToWorkspace(from->workspace(), to->workspace());
114+ surfaceManager->moveWorkspaceContentToWorkspace(to->workspace(), from->workspace());
115115 }
116116}
117117