mirror of
https://github.com/elementary/gala.git
synced 2024-09-11 07:05:30 +03:00
Ensure that the correct workspaces are removed (#269)
This commit is contained in:
parent
3661cbd77a
commit
985baa08bd
@ -208,8 +208,8 @@ namespace Gala
|
||||
public static uint get_n_windows (Meta.Workspace workspace)
|
||||
{
|
||||
var n = 0;
|
||||
foreach (var window in workspace.list_windows ()) {
|
||||
if (window.is_on_all_workspaces ())
|
||||
foreach (weak Meta.Window window in workspace.list_windows ()) {
|
||||
if (window.is_always_on_all_workspaces ())
|
||||
continue;
|
||||
if (window.window_type == Meta.WindowType.NORMAL ||
|
||||
window.window_type == Meta.WindowType.DIALOG ||
|
||||
|
@ -69,6 +69,9 @@ namespace Gala
|
||||
if (Prefs.get_dynamic_workspaces ()
|
||||
&& Utils.get_n_windows (screen.get_workspace_by_index (screen.get_n_workspaces () - 1)) > 0)
|
||||
append_workspace ();
|
||||
|
||||
// There are some empty workspace at startup
|
||||
cleanup ();
|
||||
}
|
||||
|
||||
~WorkspaceManager ()
|
||||
|
Loading…
Reference in New Issue
Block a user