aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTadao Tanikawa <tanikawa.tadao@jp.panasonic.com>2018-08-24 04:45:53 +0000
committerTadao Tanikawa <tanikawa.tadao@jp.panasonic.com>2018-08-24 10:59:10 +0000
commit7c61d70c8f9630133038a8cfef7a0511b1555037 (patch)
treef478d24b72d16356de989a1a94495c758c1741c6
parent7fcd3a372789e9cea7fbf2deb3beafc405f59190 (diff)
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.cpp10
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