Revert "src/core/screen.c: Set _NET_NUMBER_OF_DESKTOPS in meta_screen_new"

When dynamic workspaces are used, we pick up an existing NUMBER_OF_DESKTOP
hint in meta_screen_init_workspaces() to properly restore workspaces
on restart. Unconditionally setting that hint to 1 *before* reading it
breaks that, and we end up shifting all windows to the first workspace.

This reverts commit 8532b10290.

https://bugzilla.gnome.org/show_bug.cgi?id=760651
This commit is contained in:
Florian Müllner 2017-09-30 00:14:19 +02:00
parent e3d59832c5
commit fd763ad857

View File

@ -72,8 +72,6 @@ static void prefs_changed_callback (MetaPreference pref,
static void set_desktop_geometry_hint (MetaScreen *screen);
static void set_desktop_viewport_hint (MetaScreen *screen);
static void set_number_of_spaces_hint (MetaScreen *screen,
int n_spaces);
static void on_monitors_changed (MetaMonitorManager *manager,
MetaScreen *screen);
@ -773,7 +771,6 @@ meta_screen_new (MetaDisplay *display,
* so create that required workspace.
*/
meta_workspace_new (screen);
set_number_of_spaces_hint (screen, g_list_length (screen->workspaces));
screen->keys_grabbed = FALSE;
meta_screen_grab_keys (screen);