1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-15 18:22:08 -04:00

fix(niri): restore lazy overview spotlight lifecycle to reduce idle VRAM (#1693)

This commit is contained in:
Higor Prado
2026-02-15 17:49:55 -03:00
committed by GitHub
parent 0d49acaaa8
commit abff670814

View File

@@ -67,7 +67,11 @@ Scope {
hideSpotlight();
}
Variants {
Loader {
id: niriOverlayLoader
active: overlayActive || isClosing
asynchronous: false
sourceComponent: Variants {
id: overlayVariants
model: Quickshell.screens
@@ -98,7 +102,7 @@ Scope {
}
screen: modelData
visible: true
visible: overlayVisible
color: "transparent"
WlrLayershell.namespace: "dms:niri-overview-spotlight"
@@ -235,9 +239,9 @@ Scope {
visible: overlayWindow.shouldShowSpotlight || animatingOut
enabled: overlayWindow.shouldShowSpotlight
layer.enabled: true
layer.enabled: visible
layer.smooth: false
layer.textureSize: Qt.size(Math.round(width * overlayWindow.dpr), Math.round(height * overlayWindow.dpr))
layer.textureSize: layer.enabled ? Qt.size(Math.round(width * overlayWindow.dpr), Math.round(height * overlayWindow.dpr)) : Qt.size(0, 0)
Behavior on scale {
id: scaleAnimation
@@ -309,4 +313,5 @@ Scope {
}
}
}
}
}