From bbeaf8fe54996e4b347283ac115274a24ab724d6 Mon Sep 17 00:00:00 2001 From: Pier Luigi Fiorini Date: Sun, 2 Nov 2014 22:05:23 +0100 Subject: [PATCH] Hide splash when the desktop is loaded --- compositor/contents/Compositor.qml | 4 +++- compositor/contents/WindowManagement.js | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/compositor/contents/Compositor.qml b/compositor/contents/Compositor.qml index 3fd8fc94..9aa25a92 100644 --- a/compositor/contents/Compositor.qml +++ b/compositor/contents/Compositor.qml @@ -22,6 +22,7 @@ import org.kde.plasma.core 2.0 as PlasmaCore import "WindowManagement.js" as WindowManagement Rectangle { + property alias showSplash: splash.visible property bool showHome: true readonly property alias layers: layers readonly property real topBarHeight: units.iconSizes.small @@ -30,12 +31,13 @@ Rectangle { color: "black" Image { - id: klogo + id: splash anchors.fill: parent source: "klogo.png" sourceSize.width: width sourceSize.height: height fillMode: Image.PreserveAspectFit + z: 4 } ListModel { diff --git a/compositor/contents/WindowManagement.js b/compositor/contents/WindowManagement.js index 7ee5ae77..02845550 100644 --- a/compositor/contents/WindowManagement.js +++ b/compositor/contents/WindowManagement.js @@ -187,6 +187,7 @@ function mapShellSurface(surface, child) { window.z = (surface.className == "plasmashell.desktop") ? 1 : 0; // Switch to the desktop layer and take focus + compositorRoot.showSplash = false; compositorRoot.showHome = true; window.child.takeFocus();