From 1e9bd43368e93cd62646122f47413a1c493f3bab Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 1 Oct 2020 11:00:01 +0300 Subject: [PATCH] scripting: Fix initialization of WorkspaceWrapper Workspace::clientList() only returns X11 clients, while allClientList() returns all managed clients (both X11 and Wayland). --- scripting/workspace_wrapper.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripting/workspace_wrapper.cpp b/scripting/workspace_wrapper.cpp index 57016cd3f..05bbc220a 100644 --- a/scripting/workspace_wrapper.cpp +++ b/scripting/workspace_wrapper.cpp @@ -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 clients = ws->allClientList(); + for (AbstractClient *client : clients) { setupClientConnections(client); } }