Merge "Fix build error in gcc 7.2"
[apps/agl-service-windowmanager.git] / src / app.cpp
index 74a114d..d218f3e 100644 (file)
@@ -29,7 +29,6 @@
 #include <json-c/json.h>
 
 #include <algorithm>
-#include <bits/signum.h>
 #include <csignal>
 #include <fstream>
 #include <json.hpp>
@@ -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<unsigned>(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;
 }