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 1e9bd43368
)
icc-effect-5.20.5
parent
3a50ce01f8
commit
ec70d35426
|
@ -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(), SIGNAL(resized(int)), SIGNAL(screenResized(int)));
|
||||
foreach (KWin::X11Client *client, ws->clientList()) {
|
||||
|
||||
const QList<AbstractClient *> clients = ws->allClientList();
|
||||
for (AbstractClient *client : clients) {
|
||||
setupClientConnections(client);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue