mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-07-31 08:44:45 +00:00
Hide splash when the desktop is loaded
This commit is contained in:
parent
409dda41bd
commit
bbeaf8fe54
2 changed files with 4 additions and 1 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue