From c38e3016de4b58194df6352807596621bac83783 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Thu, 2 May 2019 00:10:29 +0300 Subject: [PATCH] update hidden state after slide-in BUG: 406415 --- app/view/visibilitymanager.cpp | 2 ++ app/view/visibilitymanager.h | 5 +++-- containment/package/contents/ui/VisibilityManager.qml | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/view/visibilitymanager.cpp b/app/view/visibilitymanager.cpp index ece179e3b..fbda6f4af 100644 --- a/app/view/visibilitymanager.cpp +++ b/app/view/visibilitymanager.cpp @@ -52,6 +52,8 @@ VisibilityManager::VisibilityManager(PlasmaQuick::ContainmentView *view) m_corona = qobject_cast(view->corona()); m_wm = m_corona->wm(); + connect(this, &VisibilityManager::slideInFinished, this, &VisibilityManager::updateHiddenState); + if (m_latteView) { connect(m_latteView, &Latte::View::eventTriggered, this, &VisibilityManager::viewEventManager); diff --git a/app/view/visibilitymanager.h b/app/view/visibilitymanager.h index 2d5a42790..f98170cb8 100644 --- a/app/view/visibilitymanager.h +++ b/app/view/visibilitymanager.h @@ -110,6 +110,8 @@ signals: void mustBeShown(); void mustBeHide(); + void slideInFinished(); + void modeChanged(); void raiseOnDesktopChanged(); void raiseOnActivityChanged(); @@ -132,8 +134,6 @@ private: void raiseView(bool raise); void raiseViewTemporarily(); - void updateHiddenState(); - //! KWin Edges Support functions void createEdgeGhostWindow(); @@ -151,6 +151,7 @@ private slots: void dodgeAllWindows(); void dodgeActive(); void dodgeMaximized(); + void updateHiddenState(); private: AbstractWindowInterface *m_wm; diff --git a/containment/package/contents/ui/VisibilityManager.qml b/containment/package/contents/ui/VisibilityManager.qml index c95c58c4b..31cd85985 100644 --- a/containment/package/contents/ui/VisibilityManager.qml +++ b/containment/package/contents/ui/VisibilityManager.qml @@ -721,6 +721,8 @@ Item{ if (manager.debugMagager) { console.log("showing animation ended..."); } + + latteView.visibility.slideInFinished(); } function init() {