aboutsummaryrefslogtreecommitdiffstats
path: root/launcher/src/homescreenhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'launcher/src/homescreenhandler.cpp')
-rw-r--r--launcher/src/homescreenhandler.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/launcher/src/homescreenhandler.cpp b/launcher/src/homescreenhandler.cpp
index 3c16c23..4d98414 100644
--- a/launcher/src/homescreenhandler.cpp
+++ b/launcher/src/homescreenhandler.cpp
@@ -172,7 +172,7 @@ void HomescreenHandler::init(int port, const char *token, QString myname)
});
}
-void HomescreenHandler::tapShortcut(QString application_id)
+void HomescreenHandler::tapShortcut(QString application_id, QString output_name)
{
HMI_DEBUG("Launcher","tapShortcut %s", application_id.toStdString().c_str());
struct json_object* j_json = json_object_new_object();
@@ -181,7 +181,10 @@ void HomescreenHandler::tapShortcut(QString application_id)
json_object_object_add(j_json, "area", value);
mp_hs->showWindow(application_id.toStdString().c_str(), j_json);
- aglShell->activate_app(nullptr, application_id, nullptr);
+ if (output_name.isEmpty())
+ aglShell->activate_app(nullptr, application_id, nullptr);
+ else
+ aglShell->activate_app_by_screen(output_name, application_id, nullptr);
}
void HomescreenHandler::onRep_static(struct json_object* reply_contents)