launcher/qml/Launcher: Specify window size based on what the compositor
authorMarius Vlad <marius.vlad@collabora.com>
Wed, 22 Jan 2020 19:04:23 +0000 (21:04 +0200)
committerMarius Vlad <marius.vlad@collabora.com>
Wed, 22 Jan 2020 19:48:11 +0000 (21:48 +0200)
gives us

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Ifdbe39f441c8d960f062f6d810e33922e1ed88ba

launcher/qml/Launcher.qml

index 2247f51..822c964 100644 (file)
@@ -18,6 +18,7 @@
 import QtQuick 2.6
 import QtQuick.Layouts 1.1
 import QtQuick.Controls 2.0
+import QtQuick.Window 2.11
 import AppModel 1.0
 
 ApplicationWindow {
@@ -29,9 +30,9 @@ ApplicationWindow {
     Item {
         id: container
         anchors.centerIn: parent
-        width: 1080
-        height: 1488
-        scale: screenInfo.scale_factor()
+        width: Screen.width
+        height: Screen.height
+        scale: 1
 
         Image {
           anchors.centerIn: parent