Code Review
/
apps
/
agl-service-windowmanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix setRole
[apps/agl-service-windowmanager.git]
/
src
/
wm_client.cpp
diff --git
a/src/wm_client.cpp
b/src/wm_client.cpp
index
500c60e
..
baed828
100644
(file)
--- a/
src/wm_client.cpp
+++ b/
src/wm_client.cpp
@@
-167,7
+167,7
@@
void WMClient::appendRole(const string& role)
return true;
} */
return true;
} */
-
bool
WMClient::addSurface(unsigned surface)
+
WMError
WMClient::addSurface(unsigned surface)
{
this->surface = surface;
ilmErrorTypes err = ilm_layerAddSurface(this->layer, surface);
{
this->surface = surface;
ilmErrorTypes err = ilm_layerAddSurface(this->layer, surface);
@@
-176,7
+176,7
@@
bool WMClient::addSurface(unsigned surface)
{
err = ilm_commitChanges();
}
{
err = ilm_commitChanges();
}
- return (err == ILM_SUCCESS) ?
true : false
;
+ return (err == ILM_SUCCESS) ?
WMError::SUCCESS : WMError::FAIL
;
}
bool WMClient::removeSurfaceIfExist(unsigned surface)
}
bool WMClient::removeSurfaceIfExist(unsigned surface)