scripting: Fix initialization of WorkspaceWrapper
Workspace::clientList() only returns X11 clients, while allClientList() returns all managed clients (both X11 and Wayland).
This commit is contained in:
parent
1251b2cbb3
commit
1e9bd43368
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
connect(QApplication::desktop(), &QDesktopWidget::resized, this, &WorkspaceWrapper::screenResized);
|
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);
|
setupClientConnections(client);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue