From 343b17472d8b6b18e89731961337f04c4033832c Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Sat, 8 Sep 2018 20:06:45 +0900 Subject: Watch the contents of TaskVisible Signed-off-by: Kazumasa Mitsunari --- src/wm_layer_control.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wm_layer_control.cpp b/src/wm_layer_control.cpp index 31078fe..4519922 100644 --- a/src/wm_layer_control.cpp +++ b/src/wm_layer_control.cpp @@ -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); } -- cgit 1.2.3-korg