on xenial help sign in
Add delay before removing splash, masks surface resize glitching
ce8caa4Gerry Boland
qml/Stages/SpreadDelegate.qml+13−3
@@ -48,6 +48,17 @@ Item {
48 surface.anchors.topMargin = maximizedAppTopMargin;
48 surface.anchors.topMargin = maximizedAppTopMargin;
49 }
49 }
50 }
50 }
51+
52+ function revealSurface() {
53+ surface.visible = true;
54+ splashLoader.source = "";
55+ }
56+ }
57+
58+ Timer { //FIXME - need to delay removing splash screen to allow surface resize to complete
59+ id: surfaceRevealDelay
60+ interval: 100
61+ onTriggered: priv.revealSurface()
51 }
62 }
52
63
53 Binding {
64 Binding {
@@ -74,9 +85,8 @@ Item {
74 State {
85 State {
75 name: "hasSurface"
86 name: "hasSurface"
76 when: priv.appHasCreatedASurface && (root.surface !== null)
87 when: priv.appHasCreatedASurface && (root.surface !== null)
77− PropertyChanges { target: root.surface; parent: root; anchors.fill: parent; z: 1 }
88+ PropertyChanges { target: root.surface; parent: root; anchors.fill: parent; z: 1; visible: false }
78− StateChangeScript { script: priv.checkFullscreen(root.surface); }
89+ StateChangeScript { script: { priv.checkFullscreen(root.surface); surfaceRevealDelay.start(); } }
79− PropertyChanges { target: splashLoader; source: "" }
80 },
90 },
81 State {
91 State {
82 name: "surfaceLostButAppStillAlive"
92 name: "surfaceLostButAppStillAlive"