diff options
author | Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com> | 2018-08-24 04:44:33 +0000 |
---|---|---|
committer | Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com> | 2018-08-24 10:58:38 +0000 |
commit | 9430d170c235ff75268db06d1ba32692dea0a65f (patch) | |
tree | 8524d3531c1388776a85f2953e0043018eb29259 /launcher/src/main.cpp | |
parent | adfc55e6dd4b10b83aa35bab40698cbf7b496ec7 (diff) |
Revert "Use appid between homescreen-service and apps"guppy_6.90.0guppy/6.90.0flounder_5.99.6flounder_5.99.5flounder_5.99.4flounder/5.99.6flounder/5.99.5flounder/5.99.46.90.05.99.65.99.55.99.4
This reverts commit 5fbb59e80e4f870a1badd694d2efcd8cd941cdfb.
Bug-AGL: SPEC-1685
Change-Id: Idd71625415b79cff6ab76b6179236d946a5aab41
Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
Diffstat (limited to 'launcher/src/main.cpp')
-rw-r--r-- | launcher/src/main.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/launcher/src/main.cpp b/launcher/src/main.cpp index 5720203..91a1d80 100644 --- a/launcher/src/main.cpp +++ b/launcher/src/main.cpp @@ -124,8 +124,16 @@ int main(int argc, char *argv[]) homescreenHandler->init(port, token.toStdString().c_str()); homescreenHandler->set_event_handler(QLibHomeScreen::Event_TapShortcut, [layoutHandler, myname](json_object *object){ - qDebug("Surface %s got tapShortcut\n", myname.toStdString().c_str()); - layoutHandler->activateSurface(myname); + json_object *appnameJ = nullptr; + if(json_object_object_get_ex(object, "application_name", &appnameJ)) + { + const char *appname = json_object_get_string(appnameJ); + if(myname == appname) + { + qDebug("Surface %s got tapShortcut\n", appname); + layoutHandler->activateSurface(myname); + } + } }); QUrl bindingAddress; |