aboutsummaryrefslogtreecommitdiffstats
path: root/src/wayland.cpp
diff options
context:
space:
mode:
authorYuta Doi <yuta-d@witz-inc.co.jp>2018-01-19 17:00:42 +0900
committerYuta Doi <yuta-d@witz-inc.co.jp>2018-01-19 08:19:14 +0000
commita40753a48f09c8ffcce43f324f5f91029a351a48 (patch)
treedff274f4ef8e4bb9c321b7435406ae2eeab69e89 /src/wayland.cpp
parent09a667b964e5b24b56805ac7d7ef7e66d9b22a3c (diff)
Fix for switching from half size to full size
This patch is for eel only because wayland-ivi-extension 2.x will be used in master. According to the modification of wayland-ivi-extension 1.13, WindowManager is fixed for correct switching from half size to full size. Related commit: https://gerrit.automotivelinux.org/gerrit/#/c/12399/ Bug-AGL: SPEC-986 Change-Id: If8fdae2206aa138f788d6c0929ab533c4123f153 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Diffstat (limited to 'src/wayland.cpp')
-rw-r--r--src/wayland.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wayland.cpp b/src/wayland.cpp
index 53668d2..9e7408c 100644
--- a/src/wayland.cpp
+++ b/src/wayland.cpp
@@ -226,6 +226,9 @@ void controller::layer_create(uint32_t id, int32_t w, int32_t h) {
void controller::surface_create(uint32_t id) {
this->surfaces[id] = std::make_unique<struct surface>(id, this);
+
+ // configure surface to wxh dimensions
+ this->surfaces[id]->set_configuration(this->output_size.w, this->output_size.h);
}
void controller::controller_screen(uint32_t id,
@@ -251,6 +254,9 @@ void controller::controller_surface(uint32_t id) {
if (this->surfaces.find(id) == this->surfaces.end()) {
this->surfaces[id] = std::make_unique<struct surface>(id, this);
this->chooks->surface_created(id);
+
+ // configure surface to wxh dimensions
+ this->surfaces[id]->set_configuration(this->output_size.w, this->output_size.h);
}
}
@@ -628,7 +634,6 @@ void controller::surface_configuration(struct surface *s, int32_t width,
HMI_DEBUG("wm", "compositor::surface %s @ %d w %i h %i", __func__, s->id,
width, height);
this->sprops[s->id].size = size{uint32_t(width), uint32_t(height)};
- is_configured = true;
}
void controller::surface_orientation(struct surface *s, int32_t orientation) {