summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2018-10-22 09:55:11 +0800
committerwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2018-10-22 09:55:11 +0800
commit0abea4472afdb4517b2270e716d30276d5a811e1 (patch)
tree9937733fbbc8ec28e5cbf1abc4df651e46d2a4c3 /app
parentefee3b07eabd6ed956e70b9f789c079f3d68bbf2 (diff)
delete comment
Diffstat (limited to 'app')
-rw-r--r--app/main.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/app/main.cpp b/app/main.cpp
index 56337d9..34d3d64 100644
--- a/app/main.cpp
+++ b/app/main.cpp
@@ -87,17 +87,8 @@ int main(int argc, char *argv[])
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, 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);
- qDebug("Surface %s got tapShortcut\n", myname);
- qwm->activateSurface(myname);
-// }
-// }
+ qDebug("Surface %s got tapShortcut\n", myname);
+ qwm->activateSurface(myname);
});
context->setContextProperty("mediaplayer", new Mediaplayer(bindingAddress, context));