From fc41fa6da7f64262a7bbc4313b920762e1a31d15 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Fri, 29 May 2020 13:30:15 +0300 Subject: homescreenhandler: Add the ability to specify the output based on the screen Pass the output when activing the surface in Launcher.qml Bug-AGL: SPEC-3447 Signed-off-by: Marius Vlad Change-Id: I4b8f03c90712290f580a570cd2644a4bc44687c5 --- launcher/qml/Launcher.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'launcher/qml/Launcher.qml') diff --git a/launcher/qml/Launcher.qml b/launcher/qml/Launcher.qml index f7f1c1b..27b0d3d 100644 --- a/launcher/qml/Launcher.qml +++ b/launcher/qml/Launcher.qml @@ -82,6 +82,7 @@ ApplicationWindow { property string currentId: '' property int newIndex: -1 property int index: grid.indexAt(loc.mouseX, loc.mouseY) + property string output_screen: '' x: 62 y: 264 onPressAndHold: currentId = applicationModel.id(newIndex = index) @@ -89,8 +90,13 @@ ApplicationWindow { if(loc.index < 0) { return } + + //if (applicationModel.appid(loc.index) === 'tbtnavi' || + // applicationModel.appid(loc.index) === 'hvac') { + // output_screen = 'Virtual-1' + //} if (currentId === '') { - homescreenHandler.tapShortcut(applicationModel.appid(loc.index)) + homescreenHandler.tapShortcut(applicationModel.appid(loc.index), output_screen) } else { currentId = '' } -- cgit 1.2.3-korg