From 7f0e201880a4d86447b887363d9a9b01651f795a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Venerandi?= Date: Thu, 26 Oct 2023 22:24:36 +0200 Subject: [PATCH] Fix animation when clicking grouped windows in task manager Since hidden windows are not placed in the grid-like view, `cell.isReady` is always false for them, and they never switch to the "active-hidden" state when the effect is turned on. This commit makes sure that windows hide even if their cell isn't ready. --- src/plugins/private/qml/WindowHeapDelegate.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/private/qml/WindowHeapDelegate.qml b/src/plugins/private/qml/WindowHeapDelegate.qml index 2a87b59f6d..ead5dcf889 100644 --- a/src/plugins/private/qml/WindowHeapDelegate.qml +++ b/src/plugins/private/qml/WindowHeapDelegate.qml @@ -66,7 +66,7 @@ Item { if (thumb.gestureInProgress) { return "partial"; } - if (thumb.partialActivationFactor > 0.5 && cell.isReady) { + if (thumb.partialActivationFactor > 0.5 && (cell.isReady || activeHidden)) { return activeHidden ? "active-hidden" : `active-${substate}`; } return initialHidden ? "initial-hidden" : "initial";