MetaWindowActor: don't start any effect when no compositor is available

There are cases when no compositor is available (yet) but a MetaWindow tries
to start a simple effect using a compositor plugin which is not available.
In that case we should just ignore any request and protect ourselves from
crashes.

https://bugzilla.gnome.org/show_bug.cgi?id=789223
This commit is contained in:
Marco Trevisan (Treviño) 2017-10-20 02:52:04 -05:00
parent 74565380aa
commit 35fcf4a4ae

View File

@ -1076,6 +1076,9 @@ start_simple_effect (MetaWindowActor *self,
gint *counter = NULL;
gboolean use_freeze_thaw = FALSE;
if (!compositor->plugin_mgr)
return FALSE;
switch (event)
{
case META_PLUGIN_NONE: