mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
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:
parent
6726fcd25d
commit
4be8e155d1
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user