From 29ae2899c9849733741f2abd0b7e54c21bdb10b0 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sat, 14 Jan 2017 14:31:26 +0200 Subject: [PATCH] fix #65, stop bouncing animation in hidden state --- containment/contents/ui/main.qml | 1 + plasmoid/contents/ui/TaskIconItem.qml | 6 ++++-- plasmoid/contents/ui/main.qml | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/containment/contents/ui/main.qml b/containment/contents/ui/main.qml index 489694ea1..102f2521b 100644 --- a/containment/contents/ui/main.qml +++ b/containment/contents/ui/main.qml @@ -105,6 +105,7 @@ DragDrop.DropArea { ///BEGIN properties provided to Latte Plasmoid property bool enableShadows: plasmoid.configuration.shadows + property bool dockIsHidden: dock ? dock.visibility.isHidden : false property bool dotsOnActive: plasmoid.configuration.dotsOnActive property bool highlightWindows: plasmoid.configuration.highlightWindows property bool reverseLinesPosition: plasmoid.configuration.reverseLinesPosition// nowDock ? nowDock.reverseLinesPosition : false diff --git a/plasmoid/contents/ui/TaskIconItem.qml b/plasmoid/contents/ui/TaskIconItem.qml index 5f29b284d..afb473000 100644 --- a/plasmoid/contents/ui/TaskIconItem.qml +++ b/plasmoid/contents/ui/TaskIconItem.qml @@ -627,8 +627,10 @@ Item{ } function bounceNewWindow(){ - newWindowAnimation.init(); - start(); + if (isDemandingAttention || !root.dockIsHidden) { + newWindowAnimation.init(); + start(); + } } Component.onCompleted: { diff --git a/plasmoid/contents/ui/main.qml b/plasmoid/contents/ui/main.qml index 1a3d51fc1..48465de85 100644 --- a/plasmoid/contents/ui/main.qml +++ b/plasmoid/contents/ui/main.qml @@ -96,6 +96,7 @@ Item { property bool forceHidePanel: false property bool disableLeftSpacer: false property bool disableRightSpacer: false + property bool dockIsHidden: nowDockPanel ? nowDockPanel.dockIsHidden : false property bool highlightWindows: nowDockPanel ? nowDockPanel.highlightWindows: plasmoid.configuration.highlightWindows property bool reverseLinesPosition: nowDockPanel ? nowDockPanel.reverseLinesPosition : plasmoid.configuration.reverseLinesPosition property bool dotsOnActive: nowDockPanel ? nowDockPanel.dotsOnActive : plasmoid.configuration.dotsOnActive