Fix crash when starting not on first workspace

If we are starting on something other than the first workspace,
meta_compositor_switch_workspace() will be called before
meta_compositor_manage_screen(); guard against that.
This commit is contained in:
Owen W. Taylor 2009-07-06 08:41:59 +01:00
parent 6726fcd25d
commit 4be8e155d1

View File

@ -691,6 +691,9 @@ meta_compositor_switch_workspace (MetaCompositor *compositor,
DEBUG_TRACE ("meta_compositor_switch_workspace\n");
if (!info) /* During startup before manage_screen() */
return;
info->switch_workspace_in_progress++;
if (!info->plugin_mgr ||