From 731f4da78062c38839c44b99eaacba86988ead29 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Tue, 26 Sep 2023 22:53:45 -0700 Subject: [PATCH] kwin/convergentwindows: Update to latest kwin changes --- kwin/scripts/convergentwindows/contents/ui/main.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kwin/scripts/convergentwindows/contents/ui/main.qml b/kwin/scripts/convergentwindows/contents/ui/main.qml index bee5e048..840f655e 100644 --- a/kwin/scripts/convergentwindows/contents/ui/main.qml +++ b/kwin/scripts/convergentwindows/contents/ui/main.qml @@ -3,7 +3,7 @@ // SPDX-License-Identifier: LGPL-2.1-or-later import QtQuick -import org.kde.kwin +import org.kde.kwin as KWinComponents import org.kde.plasma.private.mobileshell.shellsettingsplugin as ShellSettings Item { @@ -22,7 +22,7 @@ Item { target: ShellSettings.Settings function onConvergenceModeEnabledChanged() { - const clients = Workspace.clients; + const clients = KWinComponents.Workspace.stackingOrder; for (let i = 0; i < clients.length; i++) { if (clients[i].normalWindow) { @@ -48,7 +48,7 @@ Item { // Windows are moved from the external screen // to the internal screen if the external screen // is disconnected. - const clients = Workspace.clients; + const clients = KWinComponents.Workspace.stackingOrder; for (var i = 0; i < clients.length; i++) { if (clients[i].normalWindow) {