X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwindow_manager.cpp;h=de322dff93317de754e8e2d75c62ff48c7aec906;hb=c3c367949eb63dbde4447d0c818e8af608398514;hp=481a5fb0440d10fc1111d9f30535de719eb0bc31;hpb=cf05c2b5c92b9a79635aa2277a9d55449e14fab6;p=apps%2Fagl-service-windowmanager.git diff --git a/src/window_manager.cpp b/src/window_manager.cpp index 481a5fb..de322df 100644 --- a/src/window_manager.cpp +++ b/src/window_manager.cpp @@ -687,6 +687,7 @@ int WindowManager::init_layers() this->layout_commit(); + this->layers.loadAreaDb(); this->layers.setupArea(o->width, o->height); return 0; @@ -721,17 +722,6 @@ void WindowManager::surface_set_layout(int surface_id, const std::string& area) int w = rect.w; int h = rect.h; - // less-than-0 values refer to MAX + 1 - $VALUE - // e.g. MAX is either screen width or height - if (w < 0) - { - w = this->controller->output_size.w + 1 + w; - } - if (h < 0) - { - h = this->controller->output_size.h + 1 + h; - } - HMI_DEBUG("wm", "surface_set_layout for surface %u on layer %u", surface_id, layer_id);