From 8e0264d034cf815be6a6b40b7ae24e7f9e921556 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 26 Aug 2021 11:43:56 +0300 Subject: [PATCH] effects/overview: Delay starting the intro animation The ExpoLayout delays relayouting for optimization purposes. However, this means that new geometry will be available only after returning to the event loop. This change delays starting the intro animation so it can be started with new geometries. --- src/effects/overview/qml/ScreenView.qml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/effects/overview/qml/ScreenView.qml b/src/effects/overview/qml/ScreenView.qml index 7d6a9160de..e3a0aacf19 100644 --- a/src/effects/overview/qml/ScreenView.qml +++ b/src/effects/overview/qml/ScreenView.qml @@ -15,6 +15,10 @@ FocusScope { property bool organized: false + function start() { + container.organized = true; + } + function stop() { container.organized = false; } @@ -118,6 +122,7 @@ FocusScope { } Component.onCompleted: { - container.organized = true; + // Delay starting the effect to let the window heap arrange thumbnails. + Qt.callLater(container.start); } }