drop KX11Extras::compositingActive() as X11 is not supported

This commit is contained in:
Marco Mattiolo 2024-04-19 13:04:01 +00:00 committed by Devin Lin
parent a889968e25
commit eefc04d0c7

View file

@ -212,7 +212,7 @@ Item {
property bool isAdaptive: panel.opacityMode === Panel.Global.Adaptive
property bool floating: panel.floating
readonly property bool screenCovered: !KWindowSystem.showingDesktop && touchingWindow && panel.visibilityMode == Panel.Global.NormalPanel
property var stateTriggers: [floating, screenCovered, isOpaque, isAdaptive, isTransparent, KX11Extras.compositingActive]
property var stateTriggers: [floating, screenCovered, isOpaque, isAdaptive, isTransparent]
onStateTriggersChanged: {
let opaqueApplets = false
let floatingApplets = false
@ -233,7 +233,7 @@ Item {
floatingness = 1
floatingApplets = true
}
if (!KWindowSystem.isPlatformWayland && !KX11Extras.compositingActive) {
if (!KWindowSystem.isPlatformWayland) {
opaqueApplets = false
panelOpacity = 0
}