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: