Commit 3a50ce01 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

scripting: Make ClientFilterModel work for Wayland windows


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