on xenial help sign in
Add delay before removing splash, masks surface resize glitching
commitce8caa46c5f828284b7466a8eedaf0f1094b2906 authorGerry Boland <gerry.boland@canonical.com> dateThu 5 Jun 2014, 15:23 (12 years ago) parent1e319e9
1 file changed+13−3
qml/Stages/SpreadDelegate.qml+13−3
qml/Stages/SpreadDelegate.qml+13−3
@@ -48,6 +48,17 @@ Item {
4848 surface.anchors.topMargin = maximizedAppTopMargin;
4949 }
5050 }
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()
5162 }
5263
5364 Binding {
@@ -74,9 +85,8 @@ Item {
7485 State {
7586 name: "hasSurface"
7687 when: priv.appHasCreatedASurface && (root.surface !== null)
77− PropertyChanges { target: root.surface; parent: root; anchors.fill: parent; z: 1 }
78− StateChangeScript { script: priv.checkFullscreen(root.surface); }
79− PropertyChanges { target: splashLoader; source: "" }
88+ PropertyChanges { target: root.surface; parent: root; anchors.fill: parent; z: 1; visible: false }
89+ StateChangeScript { script: { priv.checkFullscreen(root.surface); surfaceRevealDelay.start(); } }
8090 },
8191 State {
8292 name: "surfaceLostButAppStillAlive"