workspace-manager, x11-display: Default to a single row

This seems to have been the default in the past, but was (accidentally?) modified
by 8adab0275.

For GNOME 40, we'll be returning to our root with horizontal workspaces, so instead
of overriding it in GNOME Shell side, change the default back to what it once was.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1684>
This commit is contained in:
Georges Basile Stavracas Neto 2021-01-27 11:28:49 -03:00
parent ad65de3790
commit 4927452b84
2 changed files with 4 additions and 4 deletions

View File

@ -243,8 +243,8 @@ meta_workspace_manager_new (MetaDisplay *display)
meta_workspace_manager_update_workspace_layout (workspace_manager,
META_DISPLAY_TOPLEFT,
FALSE,
-1,
1);
1,
-1);
/* There must be at least one workspace at all times,
* so create that required workspace.

View File

@ -2164,8 +2164,8 @@ meta_x11_display_update_workspace_layout (MetaX11Display *x11_display)
{
MetaWorkspaceManager *workspace_manager = x11_display->display->workspace_manager;
gboolean vertical_layout = FALSE;
int n_rows = -1;
int n_columns = 1;
int n_rows = 1;
int n_columns = -1;
MetaDisplayCorner starting_corner = META_DISPLAY_TOPLEFT;
uint32_t *list;
int n_items;