scripting: Make ClientFilterModel work for Wayland windows
This commit is contained in:
parent
faf6b8e049
commit
1251b2cbb3
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue