mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +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
|
||||
|
||||
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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue