[mutter/wayland] compositor: Don't assume we're a Wayland compositor



commit 29197d40c66f5beee1b40ba86029efc5ae199ce2
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Dec 5 15:39:40 2013 -0500

    compositor: Don't assume we're a Wayland compositor

 src/compositor/compositor.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/compositor/compositor.c b/src/compositor/compositor.c
index 325a4ec..a7d69b4 100644
--- a/src/compositor/compositor.c
+++ b/src/compositor/compositor.c
@@ -638,7 +638,8 @@ after_stage_paint (ClutterStage *stage,
   for (l = info->windows; l; l = l->next)
     meta_window_actor_post_paint (l->data);
 
-  meta_wayland_compositor_paint_finished (meta_wayland_compositor_get_default ());
+  if (meta_is_wayland_compositor ())
+    meta_wayland_compositor_paint_finished (meta_wayland_compositor_get_default ());
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]