launcher: rely on applaunchd for application startup
[apps/launcher.git] / launcher / qml / Launcher.qml
index 27b0d3d..3c948dd 100644 (file)
@@ -22,18 +22,18 @@ import QtQuick.Window 2.13
 import AppModel 1.0
 
 ApplicationWindow {
-    width: container.width * container.scale
-    height: container.height * container.scale
 
-    property int pid: -1
+    id: root 
+    //width: container.width
+    //height: container.height
+    flags: Qt.FramelessWindowHint
+    visible: true
 
     Item {
         id: container
         anchors.centerIn: parent
-        width: Screen.width
-        height: Screen.height
-        //scale: screenInfo.scale_factor()
-        scale: 1
+        width: Window.width
+        height: Window.height
 
         Image {
           anchors.centerIn: parent
@@ -82,7 +82,6 @@ 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)
@@ -96,7 +95,7 @@ ApplicationWindow {
                //      output_screen = 'Virtual-1'
                //}
                 if (currentId === '') {
-                    homescreenHandler.tapShortcut(applicationModel.appid(loc.index), output_screen)
+                    homescreenHandler.tapShortcut(applicationModel.appid(loc.index))
                 } else {
                     currentId = ''
                 }