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
wilder/Plasma/6.2
Łukasz Patron 2 years ago committed by Vlad Zahorodnii
parent ba7b23c41d
commit ce57af62ec
  1. 2
      src/scripting/windowmodel.cpp

@ -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;
}

Loading…
Cancel
Save