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

Identity of a per-screen placement state: a window's placement is scoped to the (screen, virtual desktop, activity) triple it was created in. More...

#include <phosphor-engine/include/PhosphorEngine/EngineTypes.h>

Public Member Functions

bool operator== (const PlacementStateKey &other) const
 

Public Attributes

QString screenId
 
int desktop = 1
 
QString activity
 

Detailed Description

Identity of a per-screen placement state: a window's placement is scoped to the (screen, virtual desktop, activity) triple it was created in.

Both the snap engine and the autotile engine key their per-screen state on this so a window keeps distinct placement per context (e.g. per desktop) and migrates between contexts as the window crosses monitors / desktops.

Member Function Documentation

◆ operator==()

bool PhosphorEngine::PlacementStateKey::operator== ( const PlacementStateKey other) const
inline

Member Data Documentation

◆ activity

QString PhosphorEngine::PlacementStateKey::activity

◆ desktop

int PhosphorEngine::PlacementStateKey::desktop = 1

◆ screenId

QString PhosphorEngine::PlacementStateKey::screenId

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