summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2018-11-02 12:27:48 +0000
committerGerrit Code Review <gerrit@automotivelinux.org>2018-11-02 12:27:48 +0000
commitdc32441c3a3316840a4efb22e92d3d277cfde70a (patch)
treeb7ada4eb719e56e6d729c10772a0d9e66e3ab1bc /app
parent23736fb785c75215a0c7f11866735e4b30824b38 (diff)
parentf2d1e14b5ecef1f464e3d38860ab474ce22fb2f0 (diff)
Merge "delete application_name check in tap_shortcut event"
Diffstat (limited to 'app')
-rw-r--r--app/main.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/app/main.cpp b/app/main.cpp
index ac5fb24..844913f 100644
--- a/app/main.cpp
+++ b/app/main.cpp
@@ -98,16 +98,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(QString::compare(myname, appname, Qt::CaseInsensitive) == 0)
- {
- qDebug("Surface %s got tapShortcut\n", appname);
- qwm->activateSurface(myname);
- }
- }
+ qDebug("Surface %s got tapShortcut\n", myname.toStdString().c_str());
+ qwm->activateSurface(myname);
});
#endif
engine.load(QUrl(QStringLiteral("qrc:/Mixer.qml")));