mirror of
https://github.com/elementary/gala.git
synced 2025-01-07 10:40:17 +03:00
Fixed startup problem
This commit is contained in:
parent
699d44ab58
commit
a23381281c
@ -70,8 +70,8 @@ namespace Gala
|
||||
screen.workareas_changed.disconnect (initial_configuration);
|
||||
|
||||
foreach (var wp in screen.get_workspaces ()) {
|
||||
//prevent adding of empty workspaces
|
||||
if (Utils.get_n_windows (wp) == 0) {
|
||||
//prevent adding of empty workspaces, unless it's the first with the panels and so on
|
||||
if (Utils.get_n_windows (wp) == 0 && !(wp.index () == 0)) {
|
||||
screen.remove_workspace (wp, screen.get_display ().get_current_time ());
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user