mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
kwin/convergentwindows: Update to latest kwin changes
This commit is contained in:
parent
f9cc52aa9f
commit
731f4da780
1 changed files with 3 additions and 3 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue