aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-07-30 20:46:36 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-07-30 20:46:36 +0900
commit9302f3a5e63cbc83f019cbeff13cc1279d9cfeae (patch)
treee37dfd1219ae59ec4bdec41a7989e324a3f46955
parent50c81e80a48329b06775580b9bbda7ebb247d16b (diff)
Fix the XDG app is not rendered
Change-Id: I153afa33b69305a1ef19ac25f8ff23023af56e2b Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
-rw-r--r--src/wayland_ivi_wm.cpp1
-rw-r--r--src/window_manager.cpp7
2 files changed, 4 insertions, 4 deletions
diff --git a/src/wayland_ivi_wm.cpp b/src/wayland_ivi_wm.cpp
index a059491..cd0924b 100644
--- a/src/wayland_ivi_wm.cpp
+++ b/src/wayland_ivi_wm.cpp
@@ -601,6 +601,7 @@ void controller::surface_size_changed(uint32_t id, int32_t width,
HMI_DEBUG("wm", "compositor::surface %s @ %d w %i h %i", __func__, id,
width, height);
this->sprops[id].size = size{uint32_t(width), uint32_t(height)};
+ this->surfaces[id]->set_source_rectangle(0, 0, width, height);
}
void controller::surface_added_to_layer(uint32_t layer_id, uint32_t surface_id)
diff --git a/src/window_manager.cpp b/src/window_manager.cpp
index 818a3ac..bba7531 100644
--- a/src/window_manager.cpp
+++ b/src/window_manager.cpp
@@ -685,8 +685,8 @@ void WindowManager::send_event(char const *evname, char const *label, char const
void WindowManager::surface_created(uint32_t surface_id)
{
// For set role function
- HMI_DEBUG("wm", "Get surface pid");
- this->controller->get_surface_properties(surface_id);
+ HMI_DEBUG("wm", "Get surface's owner");
+ this->controller->get_surface_properties(surface_id, IVI_WM_PARAM_SIZE);
auto layer_id = this->layers.get_layer_id(surface_id);
if (!layer_id)
@@ -873,8 +873,6 @@ void WindowManager::surface_set_layout(int surface_id, const std::string& area)
layer_id);
// set destination to the display rectangle
- s->set_source_rectangle(0, 0, w, h);
- this->layout_commit();
s->set_destination_rectangle(x, y, w, h);
// update area information
@@ -1423,6 +1421,7 @@ WMError WindowManager::doEndDraw(unsigned req_num)
HMI_SEQ_DEBUG(req_num, "visible %s", act.role.c_str());
//this->lm_enddraw(act.role.c_str());
}
+ this->layout_commit();
// Change current state
this->changeCurrentState(req_num);