cursor-renderer: Kill a warning

This can happen during early initialization. We should have a
better initialization plan.
This commit is contained in:
Jasper St. Pierre 2014-04-22 14:43:46 -04:00
parent 168ede9374
commit e21677c782

View File

@ -236,6 +236,10 @@ queue_redraw (MetaCursorRenderer *renderer)
g_assert (meta_is_wayland_compositor ()); 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. */ /* Clear the location the cursor was at before, if we need to. */
if (priv->previous_is_valid) if (priv->previous_is_valid)
{ {