scripting: Filter out windows with isClient=false in WindowModel

These windows render as empty boxes and opening them crashes the KWin.
Also, the same check is present in TabBox.

BUG: 486182
This commit is contained in:
Łukasz Patron 2024-05-29 10:45:14 +00:00 committed by Vlad Zahorodnii
parent ba7b23c41d
commit ce57af62ec

View file

@ -258,7 +258,7 @@ bool WindowFilterModel::filterAcceptsRow(int sourceRow, const QModelIndex &sourc
}
Window *window = qvariant_cast<Window *>(data);
if (!window) {
if (!window || !window->isClient()) {
return false;
}