From 8f0f90cbffda62b8bc3283f6987a82d34b78e921 Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Fri, 31 Aug 2018 09:26:45 +0900 Subject: Fix build error Change-Id: Ifa4052b2d076a3b05bf937a6e2aaf2a7d79ebc13 Signed-off-by: Kazumasa Mitsunari --- src/request.hpp | 4 +++- src/wm_layer_control.cpp | 11 ++++++----- src/wm_layer_control.hpp | 4 ++-- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/request.hpp b/src/request.hpp index 84973de..95b8c82 100644 --- a/src/request.hpp +++ b/src/request.hpp @@ -24,6 +24,8 @@ namespace wm { +class WMClient; + enum Task { TASK_ALLOCATE, @@ -53,7 +55,7 @@ struct WMAction std::string area; TaskVisible visible; bool end_draw_finished; - std::shared_ptr client; + std::shared_ptr client; unsigned req_num; }; diff --git a/src/wm_layer_control.cpp b/src/wm_layer_control.cpp index 3f39d65..9ac1ffc 100644 --- a/src/wm_layer_control.cpp +++ b/src/wm_layer_control.cpp @@ -27,6 +27,7 @@ using std::string; using std::vector; +using std::shared_ptr; namespace wm { @@ -358,11 +359,11 @@ WMError LayerControl::visibilityChange(const WMAction& action) if (action.visible != TaskVisible::INVISIBLE) { - ret = this->makeVisible(action.client.get()); + ret = this->makeVisible(action.client); } else { - ret = this->makeInvisible(action.client.get()); + ret = this->makeInvisible(action.client); } return ret; } @@ -525,7 +526,7 @@ void LayerControl::dispatchPropertyChangeEvent(unsigned id, } } -WMError LayerControl::makeVisible(const WMClient* client) +WMError LayerControl::makeVisible(const shared_ptr client) { WMError ret = WMError::FAIL; // Don't check here the client is not nullptr @@ -533,7 +534,7 @@ WMError LayerControl::makeVisible(const WMClient* client) bool contains;// = this->checkBackGround(action.client->role()); if(contains) { - std::shared_ptr l; + shared_ptr l; // Move background from back ground layer for(const auto& wm_layer : this->wm_layers) { @@ -566,7 +567,7 @@ WMError LayerControl::makeVisible(const WMClient* client) return ret; } -WMError LayerControl::makeInvisible(const WMClient* client) +WMError LayerControl::makeInvisible(const shared_ptr client) { WMError ret = WMError::FAIL; // Don't check here the client is not nullptr diff --git a/src/wm_layer_control.hpp b/src/wm_layer_control.hpp index ea122a3..e2c4b18 100644 --- a/src/wm_layer_control.hpp +++ b/src/wm_layer_control.hpp @@ -84,8 +84,8 @@ class LayerControl void dispatchPropertyChangeEvent(unsigned id, struct ilmSurfaceProperties*, t_ilm_notification_mask); void dispatchPropertyChangeEvent(unsigned id, struct ilmLayerProperties*, t_ilm_notification_mask); private: - WMError makeVisible(const WMClient* client); - WMError makeInvisible(const WMClient* client); + WMError makeVisible(const std::shared_ptr client); + WMError makeInvisible(const std::shared_ptr client); WMError loadLayerSetting(const std::string& path); WMError loadAreaDb(const std::string& path); -- cgit 1.2.3-korg