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

D-Bus struct for window state: (sssbsasb) More...

#include <phosphor-protocol/include/PhosphorProtocol/WindowTypes.h>

Public Member Functions

QString validationError () const
 Returns empty QString if valid, else a human-readable description of the invariant violation.
 

Public Attributes

QString windowId
 
QString zoneId
 
QString screenId
 
bool isFloating = false
 
QString changeType
 "snapped", "unsnapped", "floated", "unfloated", "screen_changed"
 
QStringList zoneIds
 D-Bus type 'as' — all zone IDs for multi-zone span (query only)
 
bool isSticky = false
 Whether window is on all virtual desktops (query only)
 

Detailed Description

D-Bus struct for window state: (sssbsasb)

Member Function Documentation

◆ validationError()

QString PhosphorProtocol::WindowStateEntry::validationError ( ) const
inline

Returns empty QString if valid, else a human-readable description of the invariant violation.

Called at the windowStateChanged unmarshal site (like DragPolicy / BridgeRegistrationResult on their paths) so a garbled entry — one naming no window — can't perturb the effect's zone cache. zoneId is intentionally unchecked: empty is the valid "unsnapped / floated" signal.

Member Data Documentation

◆ changeType

QString PhosphorProtocol::WindowStateEntry::changeType

"snapped", "unsnapped", "floated", "unfloated", "screen_changed"

◆ isFloating

bool PhosphorProtocol::WindowStateEntry::isFloating = false

◆ isSticky

bool PhosphorProtocol::WindowStateEntry::isSticky = false

Whether window is on all virtual desktops (query only)

◆ screenId

QString PhosphorProtocol::WindowStateEntry::screenId

◆ windowId

QString PhosphorProtocol::WindowStateEntry::windowId

◆ zoneId

QString PhosphorProtocol::WindowStateEntry::zoneId

◆ zoneIds

QStringList PhosphorProtocol::WindowStateEntry::zoneIds

D-Bus type 'as' — all zone IDs for multi-zone span (query only)


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