Commit ec70d354 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

scripting: Fix initialization of WorkspaceWrapper

Workspace::clientList() only returns X11 clients, while allClientList()
returns all managed clients (both X11 and Wayland).

(cherry picked from commit 1e9bd433)
parent 3a50ce01
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
#include "../outline.h" #include "../outline.h"
#include "../screens.h" #include "../screens.h"
#include "../virtualdesktops.h" #include "../virtualdesktops.h"
#include "../wayland_server.h"
#include "../workspace.h" #include "../workspace.h"
#ifdef KWIN_BUILD_ACTIVITIES #ifdef KWIN_BUILD_ACTIVITIES
#include "../activities.h" #include "../activities.h"
...@@ -55,7 +54,9 @@ WorkspaceWrapper::WorkspaceWrapper(QObject* parent) : QObject(parent) ...@@ -55,7 +54,9 @@ WorkspaceWrapper::WorkspaceWrapper(QObject* parent) : QObject(parent)
} }
); );
connect(QApplication::desktop(), SIGNAL(resized(int)), SIGNAL(screenResized(int))); connect(QApplication::desktop(), SIGNAL(resized(int)), SIGNAL(screenResized(int)));
foreach (KWin::X11Client *client, ws->clientList()) {
const QList<AbstractClient *> clients = ws->allClientList();
for (AbstractClient *client : clients) {
setupClientConnections(client); 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