CLUTTER_ACTOR_CLASS (clutter_stage_parent_class)->show (self);
+ /* Possibly do an allocation run so that the stage will have the
+ right size before we map it */
+ _clutter_stage_maybe_relayout (self);
+
g_assert (priv->impl != NULL);
impl = CLUTTER_STAGE_WINDOW (priv->impl);
CLUTTER_STAGE_WINDOW_GET_IFACE (impl)->show (impl, TRUE);
CLUTTER_NOTE (BACKEND, "Mapping stage[%lu]",
(unsigned long) stage_x11->xwin);
- if (!stage_x11->is_foreign_xwin)
- {
- CLUTTER_NOTE (BACKEND, "Resizing stage[%lu] (%d, %d)",
- (unsigned long) stage_x11->xwin,
- stage_x11->xwin_width,
- stage_x11->xwin_height);
-
- CLUTTER_SET_PRIVATE_FLAGS (stage_x11->wrapper,
- CLUTTER_STAGE_IN_RESIZE);
-
- XResizeWindow (stage_x11->xdpy, stage_x11->xwin,
- stage_x11->xwin_width,
- stage_x11->xwin_height);
- }
-
if (stage_x11->fullscreen_on_map)
clutter_stage_x11_set_fullscreen (stage_window, TRUE);
else