x11/stage: Store new size on unrealized resize()

If the StageX11 is asked to resize itself while not being realized, then
we just need to store the new size and return.
This commit is contained in:
Emmanuele Bassi 2014-01-22 01:22:42 +00:00
parent 515a8fcfb5
commit 30d1e47c4e

View File

@ -292,6 +292,14 @@ clutter_stage_x11_resize (ClutterStageWindow *stage_window,
height); height);
} }
} }
else
{
/* if the backing window hasn't been created yet, we just
* need to store the new window size
*/
stage_x11->xwin_width = width;
stage_x11->xwin_height = height;
}
} }
static inline void static inline void