X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fapp.cpp;h=d218f3ed30e567215df6dfb99c6cfa8ce148cfa1;hb=12c8934465fd7cebccef4260478b282c1bd18d7f;hp=164ea218e695da74145bb412f35454e1f2dc5347;hpb=a65ed04064a6930d072b2d7b73a76911f8672bb7;p=apps%2Fagl-service-windowmanager-2017.git diff --git a/src/app.cpp b/src/app.cpp index 164ea21..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; } @@ -752,6 +752,7 @@ void App::activate(int id) { // FOR CES DEMO >>> if ((0 == strcmp(label, "Radio")) || (0 == strcmp(label, "MediaPlayer")) + || (0 == strcmp(label, "Music")) || (0 == strcmp(label, "Navigation"))) { for (auto i = surface_bg.begin(); i != surface_bg.end(); ++i) { if (id == *i) { @@ -791,6 +792,7 @@ void App::deactivate(int id) { // FOR CES DEMO >>> if ((0 == strcmp(label, "Radio")) || (0 == strcmp(label, "MediaPlayer")) + || (0 == strcmp(label, "Music")) || (0 == strcmp(label, "Navigation"))) { // Store id