Hide splash when the desktop is loaded

This commit is contained in:
Pier Luigi Fiorini 2014-11-02 22:05:23 +01:00
parent 409dda41bd
commit bbeaf8fe54
2 changed files with 4 additions and 1 deletions

View file

@ -22,6 +22,7 @@ import org.kde.plasma.core 2.0 as PlasmaCore
import "WindowManagement.js" as WindowManagement import "WindowManagement.js" as WindowManagement
Rectangle { Rectangle {
property alias showSplash: splash.visible
property bool showHome: true property bool showHome: true
readonly property alias layers: layers readonly property alias layers: layers
readonly property real topBarHeight: units.iconSizes.small readonly property real topBarHeight: units.iconSizes.small
@ -30,12 +31,13 @@ Rectangle {
color: "black" color: "black"
Image { Image {
id: klogo id: splash
anchors.fill: parent anchors.fill: parent
source: "klogo.png" source: "klogo.png"
sourceSize.width: width sourceSize.width: width
sourceSize.height: height sourceSize.height: height
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
z: 4
} }
ListModel { ListModel {

View file

@ -187,6 +187,7 @@ function mapShellSurface(surface, child) {
window.z = (surface.className == "plasmashell.desktop") ? 1 : 0; window.z = (surface.className == "plasmashell.desktop") ? 1 : 0;
// Switch to the desktop layer and take focus // Switch to the desktop layer and take focus
compositorRoot.showSplash = false;
compositorRoot.showHome = true; compositorRoot.showHome = true;
window.child.takeFocus(); window.child.takeFocus();