From 6a5be6dbc5bbc97185c530bb235af7446abdc40e Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sun, 23 Apr 2017 00:07:47 +0300 Subject: [PATCH] fix #342, occasional instant sliding-in --this is a lot related with the compositor painting. By adding a delay into showing tasks this is improved a lot --- plasmoid/contents/ui/TaskDelegate.qml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/plasmoid/contents/ui/TaskDelegate.qml b/plasmoid/contents/ui/TaskDelegate.qml index 80e166cf1..3024c1712 100644 --- a/plasmoid/contents/ui/TaskDelegate.qml +++ b/plasmoid/contents/ui/TaskDelegate.qml @@ -1110,6 +1110,17 @@ MouseArea{ property int speed: Latte.WindowSystem.compositingActive ? root.durationTime* (1.2*units.longDuration) : 0 property bool animationSent: false + //Ghost animation that acts as a delayer, in order to fix #342 + PropertyAnimation { + target: wrapper + property: "opacity" + to: 0 + //it is not depend to durationTime when animations are active + duration: root.durationTime > 0 ? 750 : 0 + easing.type: Easing.InQuad + } + //end of ghost animation + ScriptAction{ script:{ if (!showWindowAnimation.animationSent) {