Code Review
/
apps
/
agl-service-windowmanager-2017.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
2f26399
)
Return nullptr if client is not found
author
Kazumasa Mitsunari
<knimitz@witz-inc.co.jp>
Sat, 8 Sep 2018 06:30:55 +0000
(15:30 +0900)
committer
Kazumasa Mitsunari
<knimitz@witz-inc.co.jp>
Sat, 8 Sep 2018 06:30:55 +0000
(15:30 +0900)
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
src/applist.cpp
patch
|
blob
|
history
diff --git
a/src/applist.cpp
b/src/applist.cpp
index
922a89e
..
888ab71
100644
(file)
--- a/
src/applist.cpp
+++ b/
src/applist.cpp
@@
-140,7
+140,14
@@
void AppList::removeSurface(unsigned surface){
*/
shared_ptr<WMClient> AppList::lookUpClient(const string &appid)
{
- return this->app2client.at(appid);
+ if(this->app2client.count(appid) != 0)
+ {
+ return this->app2client.at(appid);
+ }
+ else
+ {
+ return nullptr;
+ }
}
/**