diff options
author | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-06-14 16:45:19 +0900 |
---|---|---|
committer | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-06-14 16:45:19 +0900 |
commit | 1da66cc3a0c65f9e3768397a479c30f1defde997 (patch) | |
tree | 1a3a57613c65a422df2ef1daebe7ee426300bdf1 | |
parent | 7ab55d536e6985b9515c9f2d235a5ca6829df0fa (diff) |
Ask surface_properties at first when surface created
Change-Id: I5453f87340d3f64f58069891d5d9ace240282e3f
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
-rw-r--r-- | src/app.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/app.cpp b/src/app.cpp index 4cc4b3d..da503b5 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -1149,6 +1149,10 @@ void App::send_event(char const *evname, char const *label, char const *area, */ void App::surface_created(uint32_t surface_id) { + // For set role function + HMI_DEBUG("wm", "Get surface pid"); + this->controller->get_surface_properties(surface_id); + auto layer_id = this->layers.get_layer_id(surface_id); if (!layer_id) { @@ -1161,9 +1165,6 @@ void App::surface_created(uint32_t surface_id) this->controller->layers[*layer_id]->add_surface(surface_id); this->layout_commit(); - // For set role function - HMI_DEBUG("wm", "Get surface pid"); - this->controller->get_surface_properties(surface_id); // activate the main_surface right away /*if (surface_id == static_cast<unsigned>(this->layers.main_surface)) { |