Commit 0f9722ad authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Port DebugConsole to Workspace::allClientList()

This simplifies the code by porting the debug console away from
Workspace::clientList() to Workspace::allClientList(). The main
difference between the two is that the former returns only all X11
windows and the latter returns both X11 and Wayland windows.
parent 56f159dd
......@@ -15,7 +15,6 @@
#include "scene.h"
#include "unmanaged.h"
#include "waylandclient.h"
#include "wayland_server.h"
#include "workspace.h"
#include "keyboard_input.h"
#include "input_event.h"
......@@ -864,14 +863,8 @@ void DebugConsoleModel::remove(int parentRow, QVector<T*> &clients, T *client)
DebugConsoleModel::DebugConsoleModel(QObject *parent)
: QAbstractItemModel(parent)
if (waylandServer()) {
const auto clients = waylandServer()->clients();
for (auto c : clients) {
const auto x11Clients = workspace()->clientList();
for (auto c : x11Clients) {
const auto clients = workspace()->allClientList();
for (auto c : clients) {
connect(workspace(), &Workspace::clientAdded, this, &DebugConsoleModel::handleClientAdded);
Supports Markdown
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