X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fapp.cpp;h=d218f3ed30e567215df6dfb99c6cfa8ce148cfa1;hb=17339414fd26e831710b0b7f3a429b4dfb868d45;hp=74a114da5be9a41f818a506218c913d7e1a76f64;hpb=b00ef7b9c2f495eea7911d874b9f2fb744c87412;p=apps%2Fagl-service-windowmanager.git diff --git a/src/app.cpp b/src/app.cpp index 74a114d..d218f3e 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -29,7 +29,6 @@ #include #include -#include #include #include #include @@ -629,7 +628,7 @@ void App::surface_created(uint32_t surface_id) { this->controller->layers[*layer_id]->add_surface( this->controller->surfaces[surface_id].get()); - + this->layout_commit(); // activate the main_surface right away /*if (surface_id == static_cast(this->layers.main_surface)) { HMI_DEBUG("wm", "Activating main_surface (%d)", surface_id); @@ -736,6 +735,7 @@ char const *App::api_request_surface(char const *drawing_name, this->controller->layers[*lid]->add_surface( this->controller->surfaces[sid].get()); + this->layout_commit(); return nullptr; }