From 7ca956bddffa9b251fc9df88a07c49a78e83a379 Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Thu, 29 Nov 2018 21:30:33 +0900 Subject: 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 --- src/wm_client.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/wm_client.hpp') diff --git a/src/wm_client.hpp b/src/wm_client.hpp index 9568324..53383fb 100644 --- a/src/wm_client.hpp +++ b/src/wm_client.hpp @@ -53,6 +53,8 @@ class WMClient unsigned surfaceID() const; void registerSurface(unsigned surface); WMError addSurface(unsigned surface); + bool isSourceSizeSet(); + void setSurfaceSizeCorrectly(); bool removeSurfaceIfExist(unsigned surface); #if GTEST_ENABLED @@ -65,6 +67,7 @@ class WMClient private: std::string id; unsigned layer; + bool is_source_set; std::string main_role; std::string area; unsigned surface; // currently, main application has only one surface. -- cgit 1.2.3-korg