aboutsummaryrefslogtreecommitdiffstats
path: root/src/wm_client.cpp
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-11-29 21:30:33 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-12-03 13:09:11 +0900
commit7ca956bddffa9b251fc9df88a07c49a78e83a379 (patch)
tree1584a09c93951f02d4b4e2a49a122a15b8c44ff4 /src/wm_client.cpp
parenta96fae7e99c2d13bc864d919cbdbcd68ba9cb841 (diff)
Fix app surface is set to position (0, 0)
Sometimes, ivi_wm_surface_size signal doesn't reach WM. In that time, surface is not placed in the set place. This patch fix the issue. Change-Id: Id7137557d5aaae373fedbb70379179ab50205c60 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/wm_client.cpp')
-rw-r--r--src/wm_client.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/wm_client.cpp b/src/wm_client.cpp
index 040c52b..3edf850 100644
--- a/src/wm_client.cpp
+++ b/src/wm_client.cpp
@@ -39,7 +39,7 @@ static const char kKeyError[] = "error";
static const char kKeyErrorDesc[] = "kErrorDescription";
WMClient::WMClient(const string &appid, unsigned layer, unsigned surface, const string &role)
- : id(appid), layer(layer),
+ : id(appid), layer(layer), is_source_set(false),
role2surface(0)
{
role2surface[role] = surface;
@@ -57,6 +57,7 @@ WMClient::WMClient(const string &appid, unsigned layer, unsigned surface, const
WMClient::WMClient(const string &appid, const string &role)
: id(appid),
layer(0),
+ is_source_set(false),
role2surface(0),
evname2list(0)
{
@@ -136,6 +137,16 @@ WMError WMClient::addSurface(unsigned surface)
return (err == ILM_SUCCESS) ? WMError::SUCCESS : WMError::FAIL;
}
+void WMClient::setSurfaceSizeCorrectly()
+{
+ this->is_source_set = true;
+}
+
+bool WMClient::isSourceSizeSet()
+{
+ return this->is_source_set;
+}
+
bool WMClient::removeSurfaceIfExist(unsigned surface)
{
bool ret = false;