Skip to content

Commit

Permalink
[Comnposiotor] Fixup warning on destroying compositor
Browse files Browse the repository at this point in the history
  • Loading branch information
neochapay committed Oct 21, 2024
1 parent b095921 commit d7b1360
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/qml/GlacierCompositor.qml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Item {
}

Connections {
target: comp.quickWindow
target: comp ? comp.quickWindow : null
function onActiveFocusItemChanged() {
// Search for the layer of the focus item
var focusedLayer = comp.activeFocusItem
Expand All @@ -81,7 +81,7 @@ Item {

Item {
id: homeLayer
z: comp.homeActive ? 4 : 1
z: comp ? comp.homeActive ? 4 : 1 : -1
anchors.fill: parent
}

Expand All @@ -91,7 +91,7 @@ Item {

width: parent.width
height: parent.height
visible: comp.appActive && !LipstickSettings.lockscreenVisible
visible: comp ? comp.appActive && !LipstickSettings.lockscreenVisible : false
}

Rectangle {
Expand All @@ -112,7 +112,7 @@ Item {
Item {
id: overlayLayer
z: 5
visible: comp.appActive
visible: comp ? comp.appActive : false
}

Item {
Expand Down Expand Up @@ -225,7 +225,7 @@ Item {
}

PropertyChanges {
target: comp.topmostAlarmWindow == null ? appLayer : alarmsLayer
target: comp ? comp.topmostAlarmWindow == null ? appLayer : alarmsLayer : alarmsLayer
x: gestureArea.horizontal ? gestureArea.value : 0
y: gestureArea.horizontal ? 0 : gestureArea.value
}
Expand Down Expand Up @@ -298,7 +298,7 @@ Item {
}
NumberAnimation {
id: wOpacityAnimation
target: comp.topmostWindow
target: comp ? comp.topmostWindow : null
property: "opacity"
to: 0
duration: 200
Expand Down

0 comments on commit d7b1360

Please sign in to comment.