From e8d1f16f785cc176a82a9b46e08e13eb89899437 Mon Sep 17 00:00:00 2001 From: wang_zhiqiang Date: Fri, 11 Jan 2019 14:40:14 +0800 Subject: Use Event_ShowWindow instead of Event_TapShortcut The interface of homescreen service will be changed then, use Event_ShowWindow instead of Event_TapShortcut. Related changes: agl-service-homescreen: https://gerrit.automotivelinux.org/gerrit/#/c/17929/ libhomescreen: https://gerrit.automotivelinux.org/gerrit/#/c/17931/ libqthomescreen: https://gerrit.automotivelinux.org/gerrit/#/c/17933/ BUG-AGL: SPEC-1931 Change-Id: Ia8e100483fd1a418789483169c815847d2b64b11 Signed-off-by: wang_zhiqiang --- launcher/src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/launcher/src/main.cpp b/launcher/src/main.cpp index bd19036..291e9d5 100644 --- a/launcher/src/main.cpp +++ b/launcher/src/main.cpp @@ -123,9 +123,9 @@ 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); - layoutHandler->activateSurface(myname); + homescreenHandler->set_event_handler(QLibHomeScreen::Event_ShowWindow, [layoutHandler, myname](json_object *object){ + qDebug("Surface %s got Event_ShowWindow\n", myname); + layoutHandler->activateWindow(myname); }); QUrl bindingAddress; -- cgit 1.2.3-korg