[mutter] cursor-renderer: Kill a warning



commit e21677c7829545377dead53280e2103ae87a1d75
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Apr 22 14:43:46 2014 -0400

    cursor-renderer: Kill a warning
    
    This can happen during early initialization. We should have a
    better initialization plan.

 src/backends/meta-cursor-renderer.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/backends/meta-cursor-renderer.c b/src/backends/meta-cursor-renderer.c
index 83af974..e2bb5af 100644
--- a/src/backends/meta-cursor-renderer.c
+++ b/src/backends/meta-cursor-renderer.c
@@ -236,6 +236,10 @@ queue_redraw (MetaCursorRenderer *renderer)
 
   g_assert (meta_is_wayland_compositor ());
 
+  /* During early initialization, we can have no stage */
+  if (!stage)
+    return;
+
   /* Clear the location the cursor was at before, if we need to. */
   if (priv->previous_is_valid)
     {


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