readjust z orders

This commit is contained in:
Marco Martin 2015-01-14 16:04:09 +01:00
parent 5ff1199099
commit 271f4ed9de

View file

@ -140,7 +140,7 @@ Rectangle {
Item { Item {
id: keyboardLayer id: keyboardLayer
anchors.fill: parent anchors.fill: parent
z: 5 z: 800
onVisibleChanged: { onVisibleChanged: {
if (!visible && compositorRoot.shellWindow) { if (!visible && compositorRoot.shellWindow) {
compositorRoot.shellWindow.child.takeFocus(); compositorRoot.shellWindow.child.takeFocus();
@ -303,7 +303,7 @@ Rectangle {
ScriptAction { ScriptAction {
script: { script: {
desktopLayer.z = 1 desktopLayer.z = 1
windowsLayerBackground.z = 2 windowsLayerBackground.z = 800
} }
} }
PropertyAnimation { PropertyAnimation {
@ -344,7 +344,7 @@ Rectangle {
compositorRoot.currentWindow = null; compositorRoot.currentWindow = null;
} else { } else {
desktopLayer.z = 1; desktopLayer.z = 1;
windowsLayerBackground.z = 2; windowsLayerBackground.z = 800;
if (compositorRoot.currentWindow) { if (compositorRoot.currentWindow) {
compositorRoot.currentWindow.child.takeFocus(); compositorRoot.currentWindow.child.takeFocus();
} }