kwin/convergentwindows: Update to latest kwin changes

This commit is contained in:
Devin Lin 2023-09-26 22:53:45 -07:00
parent f9cc52aa9f
commit 731f4da780

View file

@ -3,7 +3,7 @@
// SPDX-License-Identifier: LGPL-2.1-or-later // SPDX-License-Identifier: LGPL-2.1-or-later
import QtQuick import QtQuick
import org.kde.kwin import org.kde.kwin as KWinComponents
import org.kde.plasma.private.mobileshell.shellsettingsplugin as ShellSettings import org.kde.plasma.private.mobileshell.shellsettingsplugin as ShellSettings
Item { Item {
@ -22,7 +22,7 @@ Item {
target: ShellSettings.Settings target: ShellSettings.Settings
function onConvergenceModeEnabledChanged() { function onConvergenceModeEnabledChanged() {
const clients = Workspace.clients; const clients = KWinComponents.Workspace.stackingOrder;
for (let i = 0; i < clients.length; i++) { for (let i = 0; i < clients.length; i++) {
if (clients[i].normalWindow) { if (clients[i].normalWindow) {
@ -48,7 +48,7 @@ Item {
// Windows are moved from the external screen // Windows are moved from the external screen
// to the internal screen if the external screen // to the internal screen if the external screen
// is disconnected. // is disconnected.
const clients = Workspace.clients; const clients = KWinComponents.Workspace.stackingOrder;
for (var i = 0; i < clients.length; i++) { for (var i = 0; i < clients.length; i++) {
if (clients[i].normalWindow) { if (clients[i].normalWindow) {