kwin/convergentwindows: Port to kwin api changes

This commit is contained in:
Devin Lin 2023-09-27 20:04:30 -07:00
parent 9776714341
commit 203f21d97d

View file

@ -22,7 +22,7 @@ Item {
target: ShellSettings.Settings target: ShellSettings.Settings
function onConvergenceModeEnabledChanged() { function onConvergenceModeEnabledChanged() {
const clients = KWinComponents.Workspace.stackingOrder; const clients = KWinComponents.Workspace.windows;
for (let i = 0; i < clients.length; i++) { for (let i = 0; i < clients.length; i++) {
if (clients[i].normalWindow) { if (clients[i].normalWindow) {
@ -35,7 +35,7 @@ Item {
Connections { Connections {
target: Workspace target: Workspace
function onClientAdded(client) { function onWindowAdded(client) {
if (client.normalWindow) { if (client.normalWindow) {
client.interactiveMoveResizeFinished.connect((client) => { client.interactiveMoveResizeFinished.connect((client) => {
root.run(client); root.run(client);
@ -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 = KWinComponents.Workspace.stackingOrder; const clients = KWinComponents.Workspace.windows;
for (var i = 0; i < clients.length; i++) { for (var i = 0; i < clients.length; i++) {
if (clients[i].normalWindow) { if (clients[i].normalWindow) {