diff options
-rw-r--r-- | src/app.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/app.cpp b/src/app.cpp index c0130d2..3bdabfd 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -1385,10 +1385,7 @@ bool App::api_set_role(char const *appid, char const *drawing_name, unsigned pid // this surface is already created HMI_DEBUG("wm", "surface_id is %u, layer_id is %u", surface, *lid); - const auto &o_layer = this->layers.get_layer(*lid); - auto rect = o_layer.value().rect; - this->controller->surfaces[surface]->set_source_rectangle(rect.x, rect.y, rect.w, rect.h); - + this->surface_set_layout(surface); this->controller->layers[*lid]->add_surface(surface); this->layout_commit(); |