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

Active drag-insert preview state. More...

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

Public Attributes

QString windowId
 
QString targetScreenId
 
int lastInsertIndex = -1
 
bool hadPriorState = false
 
PhosphorEngine::TilingStateKey priorKey
 
int priorRawIndex = -1
 
bool priorFloating = false
 
bool priorOverflow = false
 Whether that prior float was an OVERFLOW float rather than a user one.
 
bool priorSameScreen = false
 
QString evictedWindowId
 

Detailed Description

Active drag-insert preview state.

When set, applyTiling() filters the dragged window out of the windowsTiled batch so the KWin interactive move isn't fought, while the remaining windows animate into their new positions. Supports three entry modes (captured at begin() time for cancel restoration):

  • Same-screen reorder: window was already tiled/floating on targetScreenId
  • Cross-screen adoption: window was tracked on a different autotile screen
  • Fresh adoption: window was not tracked by the engine at all

Member Data Documentation

◆ evictedWindowId

QString PhosphorTileEngine::DragInsertPreview::evictedWindowId

◆ hadPriorState

bool PhosphorTileEngine::DragInsertPreview::hadPriorState = false

◆ lastInsertIndex

int PhosphorTileEngine::DragInsertPreview::lastInsertIndex = -1

◆ priorFloating

bool PhosphorTileEngine::DragInsertPreview::priorFloating = false

◆ priorKey

PhosphorEngine::TilingStateKey PhosphorTileEngine::DragInsertPreview::priorKey

◆ priorOverflow

bool PhosphorTileEngine::DragInsertPreview::priorOverflow = false

Whether that prior float was an OVERFLOW float rather than a user one.

begin clears the overflow mark when it unfloats, so cancel has to know which kind to restore: an unmarked re-float is recorded by capturePlacement as a phantom user float and is never picked up by recoverIfRoom, which walks the overflow set only.

◆ priorRawIndex

int PhosphorTileEngine::DragInsertPreview::priorRawIndex = -1

◆ priorSameScreen

bool PhosphorTileEngine::DragInsertPreview::priorSameScreen = false

◆ targetScreenId

QString PhosphorTileEngine::DragInsertPreview::targetScreenId

◆ windowId

QString PhosphorTileEngine::DragInsertPreview::windowId

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