aboutsummaryrefslogtreecommitdiffstats
path: root/src/wm_client.cpp
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-09-08 15:33:48 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-09-08 15:33:48 +0900
commit516f8db80ee3c9d935c9f42468d9bdd6a05b67de (patch)
tree8d360e89ae2693bf1e5849ec3b7ca40ba7eb09b1 /src/wm_client.cpp
parent314d4708597af784bb16275c20f6b65dcff2460f (diff)
Return WMError instead of bool
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/wm_client.cpp')
-rw-r--r--src/wm_client.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wm_client.cpp b/src/wm_client.cpp
index 500c60e..baed828 100644
--- a/src/wm_client.cpp
+++ b/src/wm_client.cpp
@@ -167,7 +167,7 @@ void WMClient::appendRole(const string& role)
return true;
} */
-bool WMClient::addSurface(unsigned surface)
+WMError WMClient::addSurface(unsigned surface)
{
this->surface = surface;
ilmErrorTypes err = ilm_layerAddSurface(this->layer, surface);
@@ -176,7 +176,7 @@ bool WMClient::addSurface(unsigned surface)
{
err = ilm_commitChanges();
}
- return (err == ILM_SUCCESS) ? true : false;
+ return (err == ILM_SUCCESS) ? WMError::SUCCESS : WMError::FAIL;
}
bool WMClient::removeSurfaceIfExist(unsigned surface)