From 73c26baab461a317679832f5d134cd0fa24f9c9e Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 30 Mar 2023 14:34:58 +0300 Subject: [PATCH] scripting: Make WindowModel.desktop property return list of desktops The X11 desktop id property is obsolete. --- 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 7cfbd29c9c..6f5235e15c 100644 --- a/src/scripting/windowmodel.cpp +++ b/src/scripting/windowmodel.cpp @@ -89,7 +89,7 @@ QVariant WindowModel::data(const QModelIndex &index, int role) const case OutputRole: return QVariant::fromValue(window->output()); case DesktopRole: - return window->desktop(); + return QVariant::fromValue(window->desktops()); case ActivityRole: return window->activities(); default: