scripting: Fix initialization of WorkspaceWrapper

Workspace::clientList() only returns X11 clients, while allClientList()
returns all managed clients (both X11 and Wayland).
master
Vlad Zahorodnii 2020-10-01 11:00:01 +03:00
parent 1251b2cbb3
commit 1e9bd43368
1 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,6 @@
#include "../outline.h"
#include "../screens.h"
#include "../virtualdesktops.h"
#include "../wayland_server.h"
#include "../workspace.h"
#ifdef KWIN_BUILD_ACTIVITIES
#include "../activities.h"
@ -55,7 +54,9 @@ WorkspaceWrapper::WorkspaceWrapper(QObject* parent) : QObject(parent)
}
);
connect(QApplication::desktop(), &QDesktopWidget::resized, this, &WorkspaceWrapper::screenResized);
foreach (KWin::X11Client *client, ws->clientList()) {
const QList<AbstractClient *> clients = ws->allClientList();
for (AbstractClient *client : clients) {
setupClientConnections(client);
}
}