Watch the contents of TaskVisible
[apps/agl-service-windowmanager.git] / src / wm_layer_control.cpp
index 31078fe..4519922 100644 (file)
@@ -380,11 +380,11 @@ WMError LayerControl::visibilityChange(const WMAction& action)
         return WMError::NOT_REGISTERED;
     }
 
-    if (action.visible != TaskVisible::INVISIBLE)
+    if (action.visible == TaskVisible::VISIBLE)
     {
         ret = this->makeVisible(action.client);
     }
-    else
+    else if (action.visible == TaskVisible::INVISIBLE)
     {
         ret = this->makeInvisible(action.client);
     }