D-Bus struct for batch geometry entries: (siiiis). More...
#include <PhosphorProtocol/WindowTypes.h>
Public Member Functions | |
| QRect | toRect () const |
| QString | validationError () const |
| Empty when the entry is safe to consume; a diagnostic otherwise. | |
Static Public Member Functions | |
| static WindowGeometryEntry | fromRect (const QString &id, const QRect &r) |
| static WindowGeometryEntry | fromRect (const QString &id, const QRect &r, const QString &screenId) |
Public Attributes | |
| QString | windowId |
| int | x = 0 |
| int | y = 0 |
| int | width = 0 |
| int | height = 0 |
| QString | screenId |
| target VS/physical screen (empty = fall back to geometry resolution) | |
D-Bus struct for batch geometry entries: (siiiis).
screenId is the daemon-authoritative target screen for this window after the geometry is applied. The compositor uses it to seed its per-window tracked-screen cache (m_trackedScreenPerWindow) without re-deriving from geometry.center() against m_virtualScreenDefs — eliminating a race during virtual-screen swap/rotate where the cache lags the daemon's authoritative move and a stale interpretation triggers a spurious cross-VS unsnap.
Empty screenId means "no authoritative answer; fall back to geometry- based resolution" (used by the autotile float-restore path which doesn't own snap state).
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
Empty when the entry is safe to consume; a diagnostic otherwise.
Call this BEFORE toRect() or any other arithmetic on the fields. Same contract as TileRequestEntry::validationError(), and it exists for the same reason: the consumer's QRect construction overflows before its own guards can run. Size is NOT checked for positivity here — callers legitimately differ on whether a zero extent means "size-only" or "invalid" — only magnitude, which is the half that is undefined behaviour rather than a policy question.
| int PhosphorProtocol::WindowGeometryEntry::height = 0 |
| QString PhosphorProtocol::WindowGeometryEntry::screenId |
target VS/physical screen (empty = fall back to geometry resolution)
| int PhosphorProtocol::WindowGeometryEntry::width = 0 |
| QString PhosphorProtocol::WindowGeometryEntry::windowId |
| int PhosphorProtocol::WindowGeometryEntry::x = 0 |
| int PhosphorProtocol::WindowGeometryEntry::y = 0 |