Skip to content

Commit 37ecbbb

Browse files
committed
popout: disable layer after animation
1 parent d6a6d2a commit 37ecbbb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

quickshell/Widgets/DankPopout.qml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ Item {
214214
onTriggered: root._resizeActive = false
215215
}
216216

217+
217218
readonly property real alignedX: Theme.snap((() => {
218219
const useAutoGaps = storedBarConfig?.popupGapsAuto !== undefined ? storedBarConfig.popupGapsAuto : true;
219220
const manualGapValue = storedBarConfig?.popupGapsManual !== undefined ? storedBarConfig.popupGapsManual : 4;
@@ -487,7 +488,7 @@ Item {
487488
readonly property real effectiveShadowAlpha: Math.max(0, Math.min(1, shadowBaseAlpha * popupSurfaceAlpha))
488489
readonly property int blurMax: 64
489490

490-
layer.enabled: Quickshell.env("DMS_DISABLE_LAYER") !== "true" && Quickshell.env("DMS_DISABLE_LAYER") !== "1" && !(root.suspendShadowWhileResizing && root._resizeActive)
491+
layer.enabled: contentWrapper.opacity < 1 && Quickshell.env("DMS_DISABLE_LAYER") !== "true" && Quickshell.env("DMS_DISABLE_LAYER") !== "1" && !(root.suspendShadowWhileResizing && root._resizeActive)
491492
layer.smooth: false
492493
layer.textureSize: root.dpr > 1 ? Qt.size(Math.ceil(width * root.dpr), Math.ceil(height * root.dpr)) : Qt.size(0, 0)
493494

0 commit comments

Comments
 (0)