aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-09-08 15:34:33 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-09-08 15:34:33 +0900
commit93c0b6297958854978b616dd6df3e4b118c67ba2 (patch)
tree60d128cc7ba8c0ccc8626dd65d355e20af552638
parent516f8db80ee3c9d935c9f42468d9bdd6a05b67de (diff)
Temporary fix of windowmanager
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
-rw-r--r--src/window_manager.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/window_manager.cpp b/src/window_manager.cpp
index 6b2ecf9..7c9da24 100644
--- a/src/window_manager.cpp
+++ b/src/window_manager.cpp
@@ -733,18 +733,25 @@ void WindowManager::send_event(char const *evname, char const *label, char const
*/
void WindowManager::surface_created(uint32_t surface_id)
{
- HMI_DEBUG("current : %d", surface_id);
if(this->tmp_surface2app.count(surface_id) != 0)
{
string appid = this->tmp_surface2app[surface_id];
this->tmp_surface2app.erase(surface_id);
- auto client = g_app_list.lookUpClient(appid);
- bool ret = client->addSurface(surface_id);
- if(!ret)
+ if(g_app_list.contains(appid))
{
- HMI_ERROR("Failed to add surface to client %s", client->appID().c_str());
+ auto client = g_app_list.lookUpClient(appid);
+ WMError ret = client->addSurface(surface_id);
+ HMI_INFO("Add surface %d to \"%s\"", appid.c_str());
+ if(ret != WMError::SUCCESS)
+ {
+ HMI_ERROR("Failed to add surface to client %s", client->appID().c_str());
+ }
}
}
+ else
+ {
+ HMI_NOTICE("Unknown surface %d", surface_id);
+ }
/* this->controller->get_surface_properties(surface_id, IVI_WM_PARAM_SIZE);
auto layer_id = this->layers.get_layer_id(surface_id);