Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
WindowId.h File Reference
#include <QString>
#include <QStringView>

Go to the source code of this file.

Namespaces

namespace  PhosphorIdentity
 
namespace  PhosphorIdentity::WindowId
 Compositor-agnostic window-identity utilities.
 

Functions

QString PhosphorIdentity::WindowId::buildCompositeId (QStringView appId, QStringView instanceId)
 Build a composite window id from its appId + instance parts.
 
QString PhosphorIdentity::WindowId::extractAppId (const QString &windowId)
 Extract app identity from window ID (portion before the '|' separator) Format: "appId|internalUuid" → returns "appId".
 
QString PhosphorIdentity::WindowId::extractInstanceId (const QString &windowId)
 Extract the stable KWin instance identifier (UUID) from a full window ID.
 
QString PhosphorIdentity::WindowId::normalizeAppId (const QString &desktopFileName, const QString &windowClass)
 Derive a canonical appId from a window's desktop-file name and class.
 
bool PhosphorIdentity::WindowId::isValidAppId (const QString &appId)
 Whether appId is a well-formed canonical app identifier.
 
QString PhosphorIdentity::WindowId::deriveShortName (const QString &windowClass)
 Derive short name from app ID for icon/app display Reverse-DNS: "org.kde.dolphin" → last dot-segment (e.g., "dolphin") Simple name: "firefox" → as-is.
 
bool PhosphorIdentity::WindowId::appIdMatches (const QString &appId, const QString &pattern)
 Segment-aware app ID matching for exclusion lists.