diff options
author | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2018-12-12 11:14:37 +0800 |
---|---|---|
committer | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2018-12-19 17:20:40 +0800 |
commit | 9cab31565840a6cdf8eea481d4cff98f6e0b3981 (patch) | |
tree | caaede5e091449dbe7b13aea63ee4be2e4ee076e /app/main.cpp | |
parent | fba3f8d5a8c5966ab73db999a2476cf6534c1245 (diff) |
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: I1389068b07ac046f9c1ad790fb82f91442bb38ee
Signed-off-by: wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
Diffstat (limited to 'app/main.cpp')
-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 aa3a4bf..2c8c01b 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -108,9 +108,9 @@ int main(int argc, char *argv[]) // HomeScreen 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); }); |