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 "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
|
||||||
// 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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue