D-Bus struct for batch geometry entries: (siiiis) More...
#include <phosphor-protocol/include/PhosphorProtocol/WindowTypes.h>
Public Member Functions | |
| QRect | toRect () const |
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 |
| 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 |