// 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);
// 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);
void App::activate(int id) {
auto ip = this->controller->sprops.find(id);
if (ip != this->controller->sprops.end()) {
void App::activate(int id) {
auto ip = this->controller->sprops.find(id);
if (ip != this->controller->sprops.end()) {
this->controller->surfaces[id]->set_visibility(1);
char const *label =
this->lookup_name(id).value_or("unknown-name").c_str();
this->controller->surfaces[id]->set_visibility(1);
char const *label =
this->lookup_name(id).value_or("unknown-name").c_str();
// FOR CES DEMO >>>
if ((0 == strcmp(label, "Radio"))
|| (0 == strcmp(label, "MediaPlayer"))
// FOR CES DEMO >>>
if ((0 == strcmp(label, "Radio"))
|| (0 == strcmp(label, "MediaPlayer"))
|| (0 == strcmp(label, "Navigation"))) {
for (auto i = surface_bg.begin(); i != surface_bg.end(); ++i) {
if (id == *i) {
|| (0 == strcmp(label, "Navigation"))) {
for (auto i = surface_bg.begin(); i != surface_bg.end(); ++i) {
if (id == *i) {
// FOR CES DEMO >>>
if ((0 == strcmp(label, "Radio"))
|| (0 == strcmp(label, "MediaPlayer"))
// FOR CES DEMO >>>
if ((0 == strcmp(label, "Radio"))
|| (0 == strcmp(label, "MediaPlayer"))