Commit bbeaf8fe authored by Pier Luigi Fiorini's avatar Pier Luigi Fiorini

Hide splash when the desktop is loaded

parent 409dda41
......@@ -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 {
......
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment