Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/plugins/multitaskview/multitaskview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ void Multitaskview::exit(SurfaceWrapper *surface, bool immediately)
// TODO: handle taskview gesture
Q_EMIT aboutToExit();

if (!qFuzzyCompare(m_partialFactor, 0.0)) {
m_partialFactor = 0.0;
Q_EMIT partialFactorChanged();
} else {
m_partialFactor = 0.0;
}

if (immediately) {
setVisible(false);
} else {
Expand Down
3 changes: 1 addition & 2 deletions src/plugins/multitaskview/qml/MultitaskviewProxy.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (C) 2024 UnionTech Software Technology Co., Ltd.
// Copyright (C) 2024-2026 UnionTech Software Technology Co., Ltd.
// SPDX-License-Identifier: Apache-2.0 OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

import QtQuick
Expand Down Expand Up @@ -69,7 +69,6 @@ Multitaskview {

if (exited) {
root.visible = false;
partialFactor = 0;

return "initial";
}
Expand Down
Loading