diff options
author | Marius Vlad <marius.vlad@collabora.com> | 2020-05-29 13:30:15 +0300 |
---|---|---|
committer | Marius Vlad <marius.vlad@collabora.com> | 2020-05-29 13:41:01 +0300 |
commit | 82bfc3a25532c9de903613d3eb71f8453fd01682 (patch) | |
tree | 10b6e3b3f054810671f3f18fbfd6331062ddd40c /launcher/qml | |
parent | 83496d2f6968f7d12a183581d320065bdba52132 (diff) |
homescreenhandler: Add the ability to specify the output based on the
screen
Pass the output when activing the surface in Launcher.qml
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Diffstat (limited to 'launcher/qml')
-rw-r--r-- | launcher/qml/Launcher.qml | 8 |
1 files changed, 7 insertions, 1 deletions
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 = '' } |