[mutter/gnome-3-26] MetaWindowActor: assert that we have plugin manager on simple effect
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gnome-3-26] MetaWindowActor: assert that we have plugin manager on simple effect
- Date: Tue, 24 Oct 2017 09:46:49 +0000 (UTC)
commit 8c35409eedd93dfede19e78a86d1794e0963833d
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Fri Oct 20 02:52:04 2017 -0500
MetaWindowActor: assert that we have plugin manager on simple effect
It looks that there are some extensions that run a Mainloop on startup,
causing to dispatch a clutter paint before the compositor is even available.
In such scenario a MetaWindow could try to start a simple effect
using a compositor plugin which is not there yet.
Then in order to catch these bugs we can now assert that the expected
conditions are valid, so that gnome-shell will provide a dumpstack to
debug the real offending JS code.
https://bugzilla.gnome.org/show_bug.cgi?id=789223
src/compositor/meta-window-actor.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c
index 1184cd4..db097a4 100644
--- a/src/compositor/meta-window-actor.c
+++ b/src/compositor/meta-window-actor.c
@@ -1069,6 +1069,8 @@ start_simple_effect (MetaWindowActor *self,
gint *counter = NULL;
gboolean use_freeze_thaw = FALSE;
+ g_assert (compositor->plugin_mgr != NULL);
+
switch (event)
{
case META_PLUGIN_NONE:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]