if (priv->stage)
{
- g_object_unref (G_OBJECT (priv->stage));
+ clutter_actor_destroy (priv->stage);
priv->stage = NULL;
}
allocation->width,
allocation->height);
- clutter_actor_queue_redraw (priv->stage);
+ if (CLUTTER_ACTOR_IS_VISIBLE (priv->stage))
+ clutter_actor_queue_redraw (priv->stage);
}
static void
clutter_stage_set_xwindow_foreign (CLUTTER_STAGE (priv->stage),
GDK_WINDOW_XID (widget->window));
-
- /* force a realize */
- clutter_actor_realize (priv->stage);
}
static void