From 45ab8c5fa9e3d0cdbf3e17e6408fe02dca4774a1 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Sat, 25 Mar 2023 23:37:18 -0700 Subject: [PATCH] kwin/mobiletaskswitcher: Fix double animation for task elements --- kwin/mobiletaskswitcher/qml/TaskSwitcher.qml | 1 - kwin/mobiletaskswitcher/qml/TaskSwitcherState.qml | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/kwin/mobiletaskswitcher/qml/TaskSwitcher.qml b/kwin/mobiletaskswitcher/qml/TaskSwitcher.qml index d6995d8c..25afb2e0 100644 --- a/kwin/mobiletaskswitcher/qml/TaskSwitcher.qml +++ b/kwin/mobiletaskswitcher/qml/TaskSwitcher.qml @@ -74,7 +74,6 @@ FocusScope { Component.onCompleted: { taskList.jumpToFirstVisibleWindow(); taskList.minimizeAll(); - taskSwitcherState.currentlyBeingOpened = true; // fully open the panel (if this is a button press, not gesture) if (!root.effect.gestureInProgress) { diff --git a/kwin/mobiletaskswitcher/qml/TaskSwitcherState.qml b/kwin/mobiletaskswitcher/qml/TaskSwitcherState.qml index 14506b67..3f594093 100644 --- a/kwin/mobiletaskswitcher/qml/TaskSwitcherState.qml +++ b/kwin/mobiletaskswitcher/qml/TaskSwitcherState.qml @@ -57,7 +57,7 @@ QtObject { property bool wasInActiveTask: false // whether we are in a swipe up gesture to open the task switcher - property bool currentlyBeingOpened: false + property bool currentlyBeingOpened: true // assume that task switcher is loaded on open // whether the task switcher is being closed: an animation is running property bool currentlyBeingClosed: false