aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.cpp')
-rw-r--r--src/app.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/app.cpp b/src/app.cpp
index 1422750..897dee7 100644
--- a/src/app.cpp
+++ b/src/app.cpp
@@ -1146,10 +1146,6 @@ 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)
{
@@ -1162,6 +1158,10 @@ 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)) {
HMI_DEBUG("wm", "Activating main_surface (%d)", surface_id);