Revision control
++ // Copyright (C) 2017 The Qt Company Ltd.
++ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
++
++ import QtQuick
++ import QtWayland.Compositor
++
++ ShellSurfaceItem {
++ id: rootChrome
++
++ onSurfaceDestroyed: {
++ bufferLocked = true;
++ destroyAnimation.start();
++ }
++
++ SequentialAnimation {
++ id: destroyAnimation
++ ParallelAnimation {
++ NumberAnimation { target: scaleTransform; property: "yScale"; to: 2/height; duration: 150 }
++ NumberAnimation { target: scaleTransform; property: "xScale"; to: 0.4; duration: 150 }
++ }
++ NumberAnimation { target: scaleTransform; property: "xScale"; to: 0; duration: 150 }
++ ScriptAction { script: { rootChrome.destroy(); } }
++ }
++
++ transform: [
++ Scale {
++ id:scaleTransform
++ origin.x: rootChrome.width / 2
++ origin.y: rootChrome.height / 2
++
++ }
++ ]
++ }