From ce57af62ec27f6e4cfa46176e7b62f93c5b99cd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Patron?= Date: Wed, 29 May 2024 10:45:14 +0000 Subject: [PATCH] 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 --- src/scripting/windowmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting/windowmodel.cpp b/src/scripting/windowmodel.cpp index f6730cbc89..ff139b23d0 100644 --- a/src/scripting/windowmodel.cpp +++ b/src/scripting/windowmodel.cpp @@ -258,7 +258,7 @@ bool WindowFilterModel::filterAcceptsRow(int sourceRow, const QModelIndex &sourc } Window *window = qvariant_cast(data); - if (!window) { + if (!window || !window->isClient()) { return false; }