Remove unused headers
[apps/agl-service-windowmanager.git] / src / layers.cpp
index 0431fee..6c6be55 100644 (file)
  * limitations under the License.
  */
 
-#include <algorithm>
 #include <regex>
 
-#include "json_helper.hpp"
 #include "layers.hpp"
-#include "util.hpp"
 #include "hmi-debug.h"
 
 namespace wm
@@ -208,6 +205,7 @@ void layer_map::setupArea(int output_w, int output_h)
     if(rct.h < 0)
         rct.h = output_h + 1 + rct.h;
     this->area2size[area] = rct;
+    this->area2size["normalfull"] = rct;
 
     // setup split.main
     area = "split.main";
@@ -224,9 +222,9 @@ void layer_map::setupArea(int output_w, int output_h)
     role = "HomeScreen";
     rct = compositor::full_rect;
     if (rct.w <= 0)
-        rct.w = output_w + rct.w;
+        rct.w = output_w + rct.w + 1;
     if (rct.h <= 0)
-        rct.h = output_h + rct.h;
+        rct.h = output_h + rct.h + 1;
     this->area2size[area] = rct;
 
     // setup onscreen