scripting: Make WindowModel.desktop property return list of desktops

The X11 desktop id property is obsolete.
This commit is contained in:
Vlad Zahorodnii 2023-03-30 14:34:58 +03:00
parent aebc361c45
commit 73c26baab4

View file

@ -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: