diff options
author | Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp> | 2014-07-28 17:56:01 +0900 |
---|---|---|
committer | Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp> | 2014-08-10 22:15:11 +0900 |
commit | cf8530166be34ebc6a8ad22abee55122af013975 (patch) | |
tree | 17a3ccd08f63de7ba739ddb283e207bf388342ae | |
parent | 938b53b36e43e77774dc426c9dc052eaee120add (diff) | |
download | weston-cf8530166be34ebc6a8ad22abee55122af013975.tar.gz |
ivi-shell: Set source surface size if surfaceConfigure event occurred.
Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
-rw-r--r-- | ivi-shell/ivi-layout.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c index 8ba60ca4..5e9c1d72 100644 --- a/ivi-shell/ivi-layout.c +++ b/ivi-shell/ivi-layout.c @@ -2866,6 +2866,13 @@ ivi_layout_surfaceConfigure(struct ivi_layout_surface *ivisurf, ivisurf->surface->width_from_buffer = width; ivisurf->surface->height_from_buffer = height; + if (ivisurf->prop.sourceWidth == 0 || ivisurf->prop.sourceHeight == 0) { + ivisurf->pending.prop.sourceWidth = width; + ivisurf->pending.prop.sourceHeight = height; + ivisurf->prop.sourceWidth = width; + ivisurf->prop.sourceHeight = height; + } + wl_signal_emit(&layout->surface_notification.configure_changed, ivisurf); } |