hyprland/ipc: provide default sorting for workspaces

This commit is contained in:
outfoxxed 2025-03-27 14:39:27 -07:00
parent fa74449139
commit d6a4ebc742
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
3 changed files with 12 additions and 4 deletions

View file

@ -27,7 +27,9 @@ class HyprlandIpcQml: public QObject {
/// All hyprland monitors.
QSDOC_TYPE_OVERRIDE(ObjectModel<qs::hyprland::ipc::HyprlandMonitor>*);
Q_PROPERTY(UntypedObjectModel* monitors READ monitors CONSTANT);
/// All hyprland workspaces.
/// All hyprland workspaces, sorted by id.
///
/// > [!NOTE] Named workspaces have a negative id, and will appear before unnamed workspaces.
QSDOC_TYPE_OVERRIDE(ObjectModel<qs::hyprland::ipc::HyprlandWorkspace>*);
Q_PROPERTY(UntypedObjectModel* workspaces READ workspaces CONSTANT);
// clang-format on