Overview: removed optimization so we are sure to see the overview between the workspaces when switching

This commit is contained in:
ItsLemmy
2025-11-10 19:15:40 -05:00
parent 36d9dabb02
commit 6c00dabc1e
+1 -24
View File
@@ -17,7 +17,6 @@ Loader {
required property ShellScreen modelData
property string wallpaper: ""
property bool overviewIsSeen: false
Component.onCompleted: {
if (modelData) {
@@ -43,27 +42,6 @@ Loader {
}
}
Connections {
target: CompositorService.backend
function onOverviewActiveChanged() {
if (CompositorService.backend.overviewActive) {
overviewIsSeen = true
timerDisableFx.stop()
} else {
timerDisableFx.restart()
}
}
}
// Use to disable effects when overview is no longer necessary.
Timer {
id: timerDisableFx
interval: 2000
onTriggered: {
overviewIsSeen = false
}
}
function setWallpaperInitial() {
if (!WallpaperService || !WallpaperService.isInitialized) {
Qt.callLater(setWallpaperInitial)
@@ -97,12 +75,11 @@ Loader {
mipmap: false
cache: false
asynchronous: true
visible: overviewIsSeen
// Image is heavily blurred, so use low resolution to save memory
sourceSize: Qt.size(1280, 720)
layer.enabled: overviewIsSeen
layer.enabled: true
layer.smooth: false
layer.effect: MultiEffect {
blurEnabled: true