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
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 {

View file

@ -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();