Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
1251b2cb
Commit
1251b2cb
authored
Oct 01, 2020
by
Vlad Zahorodnii
Browse files
scripting: Make ClientFilterModel work for Wayland windows
parent
faf6b8e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripting/scripting_model.cpp
View file @
1251b2cb
...
...
@@ -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
;
}
X11
Client
*
client
=
qvariant_cast
<
KWin
::
X11
Client
*>
(
data
);
Abstract
Client
*
client
=
qvariant_cast
<
KWin
::
Abstract
Client
*>
(
data
);
if
(
!
client
)
{
return
false
;
}
...
...
Vlad Zahorodnii
@vladz
mentioned in commit
3a50ce01
·
Oct 01, 2020
mentioned in commit
3a50ce01
mentioned in commit 3a50ce01f8420c32a97f0c71d584c1b8a62581db
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment