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

Saved position for a window removed from autotile, keyed by appId. More...

#include <phosphor-tile-engine/include/PhosphorTileEngine/AutotileEngine.h>

Public Member Functions

 PendingAutotileRestore ()=default
 
 PendingAutotileRestore (int pos, PhosphorEngine::TilingStateKey ctx, bool floating)
 

Public Attributes

int position = -1
 Index in window order at time of removal.
 
PhosphorEngine::TilingStateKey context
 Screen/desktop/activity where the window was tiled.
 
bool wasFloating = false
 Whether the window was floating when removed.
 

Detailed Description

Saved position for a window removed from autotile, keyed by appId.

When a window closes while autotiled, its position is captured so that reopening the same app restores it to the same tiling position. Analogous to snapping's PendingRestoreQueues but for autotile's order-based model.

Constructor & Destructor Documentation

◆ PendingAutotileRestore() [1/2]

PhosphorTileEngine::PendingAutotileRestore::PendingAutotileRestore ( )
default

◆ PendingAutotileRestore() [2/2]

PhosphorTileEngine::PendingAutotileRestore::PendingAutotileRestore ( int  pos,
PhosphorEngine::TilingStateKey  ctx,
bool  floating 
)
inline

Member Data Documentation

◆ context

PhosphorEngine::TilingStateKey PhosphorTileEngine::PendingAutotileRestore::context

Screen/desktop/activity where the window was tiled.

◆ position

int PhosphorTileEngine::PendingAutotileRestore::position = -1

Index in window order at time of removal.

◆ wasFloating

bool PhosphorTileEngine::PendingAutotileRestore::wasFloating = false

Whether the window was floating when removed.


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