\r
using std::string;\r
using std::vector;\r
+using std::shared_ptr;\r
\r
namespace wm {\r
\r
\r
if (action.visible != TaskVisible::INVISIBLE)\r
{\r
- ret = this->makeVisible(action.client.get());\r
+ ret = this->makeVisible(action.client);\r
}\r
else\r
{\r
- ret = this->makeInvisible(action.client.get());\r
+ ret = this->makeInvisible(action.client);\r
}\r
return ret;\r
}\r
}\r
}\r
\r
-WMError LayerControl::makeVisible(const WMClient* client)\r
+WMError LayerControl::makeVisible(const shared_ptr<WMClient> client)\r
{\r
WMError ret = WMError::FAIL;\r
// Don't check here the client is not nullptr\r
bool contains;// = this->checkBackGround(action.client->role());\r
if(contains)\r
{\r
- std::shared_ptr<WMLayer> l;\r
+ shared_ptr<WMLayer> l;\r
// Move background from back ground layer\r
for(const auto& wm_layer : this->wm_layers)\r
{\r
return ret;\r
}\r
\r
-WMError LayerControl::makeInvisible(const WMClient* client)\r
+WMError LayerControl::makeInvisible(const shared_ptr<WMClient> client)\r
{\r
WMError ret = WMError::FAIL;\r
// Don't check here the client is not nullptr\r
void dispatchPropertyChangeEvent(unsigned id, struct ilmSurfaceProperties*, t_ilm_notification_mask);\r
void dispatchPropertyChangeEvent(unsigned id, struct ilmLayerProperties*, t_ilm_notification_mask);\r
private:\r
- WMError makeVisible(const WMClient* client);\r
- WMError makeInvisible(const WMClient* client);\r
+ WMError makeVisible(const std::shared_ptr<WMClient> client);\r
+ WMError makeInvisible(const std::shared_ptr<WMClient> client);\r
WMError loadLayerSetting(const std::string& path);\r
WMError loadAreaDb(const std::string& path);\r
\r