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
Change function according to 1476fb
[apps/agl-service-windowmanager.git]
/
src
/
applist.cpp
diff --git
a/src/applist.cpp
b/src/applist.cpp
index
9b06c84
..
d0082dd
100644
(file)
--- a/
src/applist.cpp
+++ b/
src/applist.cpp
@@
-122,23
+122,28
@@
unsigned AppList::addAllocateRequest(WMRequest req)
return req.req_num; // return 1; if you test time_expire
}
return req.req_num; // return 1; if you test time_expire
}
-struct WMTrigger AppList::getRequest(unsigned req_num)
+struct WMTrigger AppList::getRequest(unsigned req_num
, bool *found
)
{
{
+ *found = false;
for (const auto &x : this->req_list)
{
if (req_num == x.req_num)
{
for (const auto &x : this->req_list)
{
if (req_num == x.req_num)
{
+ *found = true;
return x.trigger;
}
}
return x.trigger;
}
}
+ return WMTrigger{"", "", "", Task::TASK_INVALID};
}
}
-const vector<struct WMAction> &AppList::getActions(unsigned req_num)
+const vector<struct WMAction> &AppList::getActions(unsigned req_num
, bool* found
)
{
{
+ *found = false;
for (auto &x : this->req_list)
{
if (req_num == x.req_num)
{
for (auto &x : this->req_list)
{
if (req_num == x.req_num)
{
+ *found = true;
return x.sync_draw_req;
}
}
return x.sync_draw_req;
}
}