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
Bug Fix : set source rectangle x, y is not 0
[apps/agl-service-windowmanager.git]
/
src
/
main.cpp
diff --git
a/src/main.cpp
b/src/main.cpp
index
be8db1d
..
c1bc910
100644
(file)
--- a/
src/main.cpp
+++ b/
src/main.cpp
@@
-359,7
+359,12
@@
void windowmanager_setrole(afb_req req) noexcept
pid = std::stol(a_pid);
}
pid = std::stol(a_pid);
}
- g_afb_instance->app.api_set_role(appid.c_str(), a_role, pid);
+ bool ret = g_afb_instance->app.api_set_role(appid.c_str(), a_role, pid);
+ if (!ret)
+ {
+ afb_req_fail(req, "failed", "Couldn't register");
+ return;
+ }
if (isFirstReq)
{
if (isFirstReq)
{