aboutsummaryrefslogtreecommitdiffstats
path: root/src/wm_layer_control.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wm_layer_control.cpp')
-rw-r--r--src/wm_layer_control.cpp11
1 files changed, 6 insertions, 5 deletions
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<WMClient> 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<WMLayer> l;
+ shared_ptr<WMLayer> 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<WMClient> client)
{
WMError ret = WMError::FAIL;
// Don't check here the client is not nullptr