diff options
author | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2018-12-12 10:46:11 +0800 |
---|---|---|
committer | Stéphane Desneux <stephane.desneux@iot.bzh> | 2018-12-20 15:16:26 +0000 |
commit | 938e339554d6f7f47c6054768bba2bb92a9b8d17 (patch) | |
tree | 38e38a00f0a37afd65e8ffdc69847bc3cee88c52 /app | |
parent | d32d36b936cb031ba1b11c67c0d9c6afbdc280b3 (diff) |
Use Event_ShowWindow instead of Event_TapShortcutguppy_6.99.3guppy/6.99.36.99.3
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: I939d25ea1ca3f78cc18d3c8b4d119c76a77a1ef6
Signed-off-by: wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
Diffstat (limited to 'app')
-rw-r--r-- | app/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/main.cpp b/app/main.cpp index 255b39d..6fdc1ce 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -98,9 +98,9 @@ int main(int argc, char *argv[]) // HomeScreen std::string token = secret.toStdString(); hs->init(port, token.c_str()); - // Set the event handler for Event_TapShortcut which will activate the surface for windowmanager - hs->set_event_handler(LibHomeScreen::Event_TapShortcut, [qwm, &graphic_role](json_object *object){ - qDebug("Surface %s got tapShortcut\n", graphic_role.toStdString().c_str()); + // Set the event handler for Event_ShowWindow which will activate the surface for windowmanager + hs->set_event_handler(LibHomeScreen::Event_ShowWindow, [qwm, &graphic_role](json_object *object){ + qDebug("Surface %s got showWindow\n", graphic_role.toStdString().c_str()); qwm->activateWindow(graphic_role); }); #else |