From e21677c7829545377dead53280e2103ae87a1d75 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Tue, 22 Apr 2014 14:43:46 -0400 Subject: [PATCH] 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 file changed, 4 insertions(+) diff --git a/src/backends/meta-cursor-renderer.c b/src/backends/meta-cursor-renderer.c index 83af9746a..e2bb5afb9 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) {