Commit 5e0b8c1f authored by David Edmundson's avatar David Edmundson Committed by Nate Graham
Browse files

[panel] When in adaptive transparency go transparent when in show desktop mode

When in "show desktop" mode window positions are in the same place, but
the stacking order changes.

From a panel POV it's the same as the maximised window being hidden, so
we should factor that into our test.

BUG: 439209


(cherry picked from commit f7ab28c0)
parent b2797b48
......@@ -22,6 +22,7 @@ import QtQml 2.15
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.taskmanager 0.1 as TaskManager
import org.kde.kwindowsystem 1.0
Item {
id: root
......@@ -85,6 +86,10 @@ Item {
}
}
KWindowSystem {
id: kwindowsystem
}
PlasmaCore.FrameSvgItem {
id: translucentItem
enabledBorders: panel.enabledBorders
......@@ -160,7 +165,7 @@ Item {
state = Qt.binding(function() {
let mstate = '';
if (panel.opacityMode == 0) {
mstate = visibleWindowsModel.count > 0 ? "opaque" : "transparent"
mstate = visibleWindowsModel.count > 0 && !kwindowsystem.showingDesktop? "opaque" : "transparent"
} else if (panel.opacityMode == 1) {
mstate = "opaque"
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment