Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorWorkspaces::NamedWorkspace Struct Reference

One declared named workspace (config-driven; persistent while empty). More...

#include <PhosphorWorkspaces/WorkspaceReconciler.h>

Public Attributes

QString id
 Persistent identity of the declaration, minted by whoever adds it to the config and kept across renames.
QString name
 unique, non-empty
QString outputId
 pinned screen; empty = unpinned
int position = -1
 Preferred slice index, enforced on every apply; -1 = no preference (created before the trailing empty and then left where it is).

Detailed Description

One declared named workspace (config-driven; persistent while empty).

Member Data Documentation

◆ id

QString PhosphorWorkspaces::NamedWorkspace::id

Persistent identity of the declaration, minted by whoever adds it to the config and kept across renames.

The reconciler matches a realized desktop by this first, so a rename renames the desktop in place instead of creating a new one. Empty for a declaration written before ids existed, which is then matched by name.

◆ name

QString PhosphorWorkspaces::NamedWorkspace::name

unique, non-empty

◆ outputId

QString PhosphorWorkspaces::NamedWorkspace::outputId

pinned screen; empty = unpinned

◆ position

int PhosphorWorkspaces::NamedWorkspace::position = -1

Preferred slice index, enforced on every apply; -1 = no preference (created before the trailing empty and then left where it is).


The documentation for this struct was generated from the following file: