Merge "Fix build error in gcc 7.2"
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Wed, 27 Dec 2017 20:24:20 +0000 (20:24 +0000)
committerGerrit Code Review <gerrit@automotivelinux.org>
Wed, 27 Dec 2017 20:24:20 +0000 (20:24 +0000)
1  2 
src/app.cpp

diff --combined src/app.cpp
@@@ -29,7 -29,6 +29,6 @@@
  #include <json-c/json.h>
  
  #include <algorithm>
- #include <bits/signum.h>
  #include <csignal>
  #include <fstream>
  #include <json.hpp>
@@@ -629,7 -628,7 +628,7 @@@ void App::surface_created(uint32_t surf
  
     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<unsigned>(this->layers.main_surface)) {
        HMI_DEBUG("wm", "Activating main_surface (%d)", surface_id);
@@@ -736,7 -735,6 +735,7 @@@ char const *App::api_request_surface(ch
  
     this->controller->layers[*lid]->add_surface(
         this->controller->surfaces[sid].get());
 +   this->layout_commit();
  
     return nullptr;
  }
@@@ -753,7 -751,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) {
@@@ -793,7 -790,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