Commit 1251b2cb authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

scripting: Make ClientFilterModel work for Wayland windows

parent faf6b8e0
......@@ -8,10 +8,10 @@
*/
#include "scripting_model.h"
#include <config-kwin.h>
#include "abstract_client.h"
#ifdef KWIN_BUILD_ACTIVITIES
#include "activities.h"
#endif
#include "x11client.h"
#include "screens.h"
#include "virtualdesktops.h"
#include "workspace.h"
......@@ -882,7 +882,7 @@ bool ClientFilterModel::filterAcceptsRow(int sourceRow, const QModelIndex &sourc
// we do not filter out screen, desktop and activity
return true;
}
X11Client *client = qvariant_cast<KWin::X11Client *>(data);
AbstractClient *client = qvariant_cast<KWin::AbstractClient *>(data);
if (!client) {
return false;
}
......
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