multitaskingview: Fix adding last workspace animation (#281)

Fixes a weird animation when moving an app from one workspace
to the last one caused by initially not positioned new workspace
clone that's being added.
This is actually an easy fix that just tells that update_position
should not animate the position of the workspace when a workspace
is added.
This commit is contained in:
Adam Bieńkowski 2018-07-10 08:27:57 +02:00 committed by Rico Tzschichholz
parent 953c7ad58e
commit 6bdc718832

View File

@ -284,7 +284,7 @@ namespace Gala
workspaces.insert_child_at_index (workspace, num);
icon_groups.add_group (workspace.icon_group);
update_positions (opened);
update_positions (false);
if (opened)
workspace.open ();