6#include "phosphorengine_export.h"
35 if (
sticky.value_or(
false)) {
81 virtual QString
appIdFor(
const QString& instanceId)
const = 0;
115 virtual std::optional<WindowDesktopContext>
desktopContext(
const QString& windowId)
const
Definition IWindowRegistry.h:49
virtual QString appIdFor(const QString &instanceId) const =0
The app identity recorded for instanceId, or empty when the instance is unknown.
virtual std::optional< bool > fillsOutputState(const QString &windowId) const
Whether windowId is maximized on either axis or fullscreen as last reported: engaged true when any of...
Definition IWindowRegistry.h:132
virtual std::optional< bool > minimizedState(const QString &windowId) const
Tri-state compositor minimize state for windowId.
Definition IWindowRegistry.h:102
virtual std::optional< WindowDesktopContext > desktopContext(const QString &windowId) const
The desktop set and activity last reported for windowId (bare instance id or composite appId|instance...
Definition IWindowRegistry.h:115
virtual QString canonicalizeForLookup(const QString &rawWindowId) const =0
virtual QString canonicalizeWindowId(const QString &rawWindowId)=0
Freeze (on first contact) and return the canonical id for rawWindowId's instance.
virtual ~IWindowRegistry()=default
Definition DesktopRemap.h:12
The contexts the compositor last reported a window on, as far as the registry knows them,...
Definition IWindowRegistry.h:23
std::optional< bool > sticky
on all desktops; disengaged when never reported
Definition IWindowRegistry.h:26
QString activity
empty = all activities / unknown
Definition IWindowRegistry.h:27
QList< int > virtualDesktops
full list when the window spans several desktops
Definition IWindowRegistry.h:25
QStringList activities
full list when on several activities; appended last (F426)
Definition IWindowRegistry.h:28
int virtualDesktop
1-based x11 desktop; 0 = all desktops / unknown
Definition IWindowRegistry.h:24
std::optional< QSet< int > > desktopSet() const
The desktops the window is on, or nullopt when it is on all of them or they are unknown: the full lis...
Definition IWindowRegistry.h:33