aboutsummaryrefslogtreecommitdiffstats
path: root/src/window_manager.cpp
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-08-31 12:17:03 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-08-31 15:28:58 +0900
commitffcfd15b087f7104f87aa2b30b76058a1bcfb1f4 (patch)
treec22d4174b91b2051c0a60cbe438428adb8b75c17 /src/window_manager.cpp
parent58561703d4053dfd454fe564b59215ce025c4a12 (diff)
Update windowmanager
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/window_manager.cpp')
-rw-r--r--src/window_manager.cpp17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/window_manager.cpp b/src/window_manager.cpp
index 95b0d5a..34115f7 100644
--- a/src/window_manager.cpp
+++ b/src/window_manager.cpp
@@ -270,6 +270,8 @@ result<int> WindowManager::api_request_surface(char const *appid, char const *dr
}
}
+ this->lc->createNewLayer(l_id);
+
// generate surface ID for ivi-shell application
auto rname = this->id_alloc.lookup(string(role));
@@ -336,6 +338,8 @@ char const *WindowManager::api_request_surface(char const *appid, char const *dr
}
}
+ this->lc->createNewLayer(lid);
+
auto rname = this->id_alloc.lookup(str);
if (rname)
@@ -503,7 +507,7 @@ void WindowManager::api_activate_surface(char const *appid, char const *drawing_
/*
* Do allocate tasks
*/
- ret = this->doTransition(req_num);
+ ret = this->checkPolicy(req_num);
if (ret != WMError::SUCCESS)
{
@@ -555,7 +559,7 @@ void WindowManager::api_deactivate_surface(char const *appid, char const *drawin
/*
* Do allocate tasks
*/
- ret = this->doTransition(req_num);
+ ret = this->checkPolicy(req_num);
if (ret != WMError::SUCCESS)
{
@@ -1188,13 +1192,6 @@ WMError WindowManager::setRequest(const string& appid, const string &role, const
return WMError::SUCCESS;
}
-WMError WindowManager::doTransition(unsigned req_num)
-{
- HMI_SEQ_DEBUG(req_num, "check policy");
- WMError ret = this->checkPolicy(req_num);
- return ret;
-}
-
WMError WindowManager::checkPolicy(unsigned req_num)
{
/*
@@ -1483,7 +1480,7 @@ void WindowManager::processNextRequest()
if (g_app_list.haveRequest())
{
HMI_SEQ_DEBUG(req_num, "Process next request");
- WMError rc = doTransition(req_num);
+ WMError rc = checkPolicy(req_num);
if (rc != WMError::SUCCESS)
{
HMI_SEQ_ERROR(req_num, errorDescription(rc));