浏览代码

Wayland window management work around

Donald Carr 8 年之前
父节点
当前提交
d010b3bc97
共有 1 个文件被更改,包括 12 次插入1 次删除
  1. 12 1
      qml/main.qml

+ 12 - 1
qml/main.qml

@@ -266,6 +266,17 @@ Window {
     }
     }
 
 
     Component.onCompleted: {
     Component.onCompleted: {
-        showAtCorrectSize()
+        showTimer.start()
+    }
+
+    Timer {
+        id: showTimer
+
+        running: false
+        repeat: false
+        interval: 1
+        onTriggered: {
+            showAtCorrectSize()
+        }
     }
     }
 }
 }