[clutter/clutter-1.18] x11/stage: Store new size on unrealized resize()
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.18] x11/stage: Store new size on unrealized resize()
- Date: Thu, 23 Jan 2014 12:49:03 +0000 (UTC)
commit 30d1e47c4e945990f6ff4f1fa992fb63fe697a6e
Author: Emmanuele Bassi <ebassi gnome org>
Date: Wed Jan 22 01:22:42 2014 +0000
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.
clutter/x11/clutter-stage-x11.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/clutter/x11/clutter-stage-x11.c b/clutter/x11/clutter-stage-x11.c
index e3f84ac..2703d87 100644
--- a/clutter/x11/clutter-stage-x11.c
+++ b/clutter/x11/clutter-stage-x11.c
@@ -292,6 +292,14 @@ clutter_stage_x11_resize (ClutterStageWindow *stage_window,
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]