workspace-manager: Allow workspace layout to be overridden

meta_workspace_manager_override_workspace_layout is implemented by
calling meta_workspace_manager_update_workspace_layout which
respects the workspace_layout_overridden flag.  After the first call
to meta_workspace_manager_override_workspace_layout all subsequent
calls fail silently.

Reset workspace_layout_overridden to FALSE before calling
meta_workspace_manager_update_workspace_layout.

https://gitlab.gnome.org/GNOME/mutter/issues/270
This commit is contained in:
Ron Yorston 2018-10-02 15:14:52 +01:00 committed by Jonas Ådahl
parent 4282067e24
commit 92cccf53df

View File

@ -496,6 +496,8 @@ meta_workspace_manager_override_workspace_layout (MetaWorkspaceManager *workspac
int n_rows,
int n_columns)
{
workspace_manager->workspace_layout_overridden = FALSE;
meta_workspace_manager_update_workspace_layout (workspace_manager,
starting_corner,
vertical_layout,