diff options
author | tiansen <tian_sen@dl.cn.nexty-ele.com> | 2018-11-02 19:29:08 +0800 |
---|---|---|
committer | tiansen <tian_sen@dl.cn.nexty-ele.com> | 2018-11-02 19:29:08 +0800 |
commit | 4309e1fdcd89e7b9d6ae857628382a297a526ea3 (patch) | |
tree | e2795037d6dadde0161524152de135143085c150 /launcher/src/main.cpp | |
parent | d3c564e46f7bc80575271f91b3477a47e6f4d127 (diff) |
delete tapshortcut checksandbox/tiansen/horizontal
Diffstat (limited to 'launcher/src/main.cpp')
-rw-r--r-- | launcher/src/main.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/launcher/src/main.cpp b/launcher/src/main.cpp index 937e909..615453a 100644 --- a/launcher/src/main.cpp +++ b/launcher/src/main.cpp @@ -153,16 +153,7 @@ 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){ - json_object *appnameJ = nullptr; - if(json_object_object_get_ex(object, "application_name", &appnameJ)) - { - const char *appname = json_object_get_string(appnameJ); - if(myname == appname) - { - qDebug("Surface %s got tapShortcut\n", appname); - layoutHandler->activateSurface(myname); - } - } + layoutHandler->activateSurface(myname); }); return a.exec(); |