mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
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:
parent
74565380aa
commit
35fcf4a4ae
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user