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

Outcome of a context mutation on ScreenContextTracker. More...

#include <phosphor-engine/include/PhosphorEngine/ScreenContextTracker.h>

Public Attributes

bool changed = false
 The tracked current value actually changed (a real switch, not a same-value re-push that only establishes context).
 
bool armSwitch = false
 Value the engine should OR into its own context-switch flag: true only when a context had already been established before this change.
 

Detailed Description

Outcome of a context mutation on ScreenContextTracker.

The tracker owns the "was a context ever established" arming subtleties (which distinguish the daemon's startup push from a genuine desktop/activity switch), but the engine-specific reaction to a switch — logging, arming an engine's own "this pass is a context switch" flag — stays in the engine. The engine ORs armSwitch into its own flag and logs when changed.

Member Data Documentation

◆ armSwitch

bool PhosphorEngine::ContextChange::armSwitch = false

Value the engine should OR into its own context-switch flag: true only when a context had already been established before this change.

◆ changed

bool PhosphorEngine::ContextChange::changed = false

The tracked current value actually changed (a real switch, not a same-value re-push that only establishes context).


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