compositor: Initialize the plugin manager after initializing the output window

Plugins like gnome-shell may want to grab the output window immediately
before bouncing back to the mainloop.
This commit is contained in:
Jasper St. Pierre 2013-11-04 10:32:42 -05:00
parent ef4417b717
commit e72af50420

View File

@ -685,8 +685,6 @@ meta_compositor_manage_screen (MetaCompositor *compositor,
clutter_actor_add_child (info->stage, info->window_group); clutter_actor_add_child (info->stage, info->window_group);
clutter_actor_add_child (info->stage, info->top_window_group); clutter_actor_add_child (info->stage, info->top_window_group);
info->plugin_mgr = meta_plugin_manager_new (screen);
/* /*
* Delay the creation of the overlay window as long as we can, to avoid * Delay the creation of the overlay window as long as we can, to avoid
* blanking out the screen. This means that during the plugin loading, the * blanking out the screen. This means that during the plugin loading, the
@ -714,6 +712,8 @@ meta_compositor_manage_screen (MetaCompositor *compositor,
info->pending_input_region = None; info->pending_input_region = None;
} }
info->plugin_mgr = meta_plugin_manager_new (screen);
/* Map overlay window before redirecting windows offscreen so we catch their /* Map overlay window before redirecting windows offscreen so we catch their
* contents until we show the stage. * contents until we show the stage.
*/ */