Commit 1e9bd433 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

scripting: Fix initialization of WorkspaceWrapper

Workspace::clientList() only returns X11 clients, while allClientList()
returns all managed clients (both X11 and Wayland).
parent 1251b2cb
......@@ -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);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment