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

Outcome of resolving a layer focus switch. More...

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

Public Attributes

bool success = false
 
bool toTiled = false
 Which leg ran: true = float layer held focus and the switch targets the tiled side.
 
QString reason
 Feedback reason token: "tiled" / "floating" on success, "no_target" on failure.
 
QString source
 
QString target
 

Detailed Description

Outcome of resolving a layer focus switch.

Pure data — the engine emits activation/feedback from it (PlacementEngineBase::announceLayerSwitch) and applies its own activation policy first (e.g. the scroll engine's self-activation echo queue on the float-to-tiling leg).

Member Data Documentation

◆ reason

QString PhosphorEngine::LayerSwitchResult::reason

Feedback reason token: "tiled" / "floating" on success, "no_target" on failure.

Engines may remap the success token before emitting (the snap engine says "snapped" where scroll says "tiled").

◆ source

QString PhosphorEngine::LayerSwitchResult::source

◆ success

bool PhosphorEngine::LayerSwitchResult::success = false

◆ target

QString PhosphorEngine::LayerSwitchResult::target

◆ toTiled

bool PhosphorEngine::LayerSwitchResult::toTiled = false

Which leg ran: true = float layer held focus and the switch targets the tiled side.

Valid on failure too (the leg that found no target).


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