From 05c21237085cf4f15f3759f1fa7617cfc19cb803 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Fri, 26 May 2017 20:26:27 +0300 Subject: [PATCH] go faster to directRender state --improve more the parabolic animation and fix an issue that was based on the time window between smooth animation and directRender when the mouse activates the parabolic effect in the begin. --- .../package/contents/ui/applet/AppletItemWrapper.qml | 1 + containment/package/contents/ui/main.qml | 6 ++++++ plasmoid/package/contents/ui/main.qml | 1 + 3 files changed, 8 insertions(+) diff --git a/containment/package/contents/ui/applet/AppletItemWrapper.qml b/containment/package/contents/ui/applet/AppletItemWrapper.qml index d8c751380..c3ae164d4 100644 --- a/containment/package/contents/ui/applet/AppletItemWrapper.qml +++ b/containment/package/contents/ui/applet/AppletItemWrapper.qml @@ -203,6 +203,7 @@ Item{ onZoomScaleChanged: { if ((zoomScale === root.zoomFactor) && !enableDirectRenderTimer.running && !root.globalDirectRender) { + root.setGlobalDirectRender(true); enableDirectRenderTimer.start(); } diff --git a/containment/package/contents/ui/main.qml b/containment/package/contents/ui/main.qml index d306c4be1..f451ff202 100644 --- a/containment/package/contents/ui/main.qml +++ b/containment/package/contents/ui/main.qml @@ -938,6 +938,12 @@ DragDrop.DropArea { checkRestoreZoom.start(); } + function setGlobalDirectRender(value) { + if (latteApplet && latteApplet.waitingLaunchers.length > 0) + return; + + root.globalDirectRender = value; + } function updateAutomaticIconSize() { if ((visibilityManager.normalState && !root.editMode && root.autoDecreaseIconSize) diff --git a/plasmoid/package/contents/ui/main.qml b/plasmoid/package/contents/ui/main.qml index f4db6027b..f3cb1eb58 100644 --- a/plasmoid/package/contents/ui/main.qml +++ b/plasmoid/package/contents/ui/main.qml @@ -1355,6 +1355,7 @@ Item { function startEnableDirectRenderTimer() { if (latteDock) { + latteDock.setGlobalDirectRender(true); latteDock.startEnableDirectRenderTimer(); } else { enableDirectRenderTimer.start();