diff options
author | Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com> | 2018-08-24 04:45:53 +0000 |
---|---|---|
committer | Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com> | 2018-08-24 10:59:10 +0000 |
commit | 7c61d70c8f9630133038a8cfef7a0511b1555037 (patch) | |
tree | f478d24b72d16356de989a1a94495c758c1741c6 | |
parent | 7fcd3a372789e9cea7fbf2deb3beafc405f59190 (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 7fcd3a372789e9cea7fbf2deb3beafc405f59190.
Bug-AGL: SPEC-1685
Change-Id: Ide8b3cd55e962ab38b3632e931c6518923fc18bc
Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
-rw-r--r-- | src/aglextras/hmi/aglwmclient.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/aglextras/hmi/aglwmclient.cpp b/src/aglextras/hmi/aglwmclient.cpp index 3789c51..3baf6c7 100644 --- a/src/aglextras/hmi/aglwmclient.cpp +++ b/src/aglextras/hmi/aglwmclient.cpp @@ -158,8 +158,14 @@ AGLWmClient::AGLWmClient (const QString&, int port, QString) h_ptr->set_event_handler ( LibHomeScreen::Event_TapShortcut, [this](json_object* object) { - qDebug("Surface got tapShortcut!\n"); - activate_window(); + json_object *jo_app_name = nullptr; + if(json_object_object_get_ex(object, "application_name", &jo_app_name)) { + QString name(QLatin1String(json_object_get_string(jo_app_name))); + if(d_ptr->layout == name) { + qDebug("Surface %s got tapShortcut\n", qPrintable(name)); + activate_window(); + } + } } ); #endif // USE_AGL_HMI_LOWLEVEL_API |