window: Fix meta_window_get_workspaces when a window isn't on a workspace
Since we're going to be evaluating the work area at startup now, we need to make sure that we don't iterate over workspaces before they're assigned. The easiest way to do this is to make sure that meta_window_get_workspaces doesn't crash. https://bugzilla.gnome.org/show_bug.cgi?id=643606
This commit is contained in:
parent
6dfde43786
commit
578b1c06c7
@ -7475,8 +7475,10 @@ meta_window_get_workspaces (MetaWindow *window)
|
||||
{
|
||||
if (window->on_all_workspaces)
|
||||
return window->screen->workspaces;
|
||||
else
|
||||
else if (window->workspace != NULL)
|
||||
return window->workspace->list_containing_self;
|
||||
else
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user