Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorRules::ContextRuleBridge::ContextRemap Struct Reference

How the desktops and activities a rule set names have moved. More...

#include <PhosphorRules/ContextRuleBridge.h>

Public Attributes

std::function< int(int)> desktop {}
std::function< bool(const QString &)> activityAlive {}
std::function< bool(const Rule &)> applies {}

Detailed Description

How the desktops and activities a rule set names have moved.

An empty function is the identity. desktop(old) answers the new 1-based number, or 0 when that desktop is gone; activityAlive(id) is false for a removed activity. applies(rule), when set, picks the rules the remap reaches: one it answers false for is HELD, kept exactly as written and never dropped, and it outranks a moved rule that lands on its id. The daemon's late start-up renumber holds every rule added or changed after start-up took its snapshot of them (F1045): such a rule was written in the live numbering.

Member Data Documentation

◆ activityAlive

std::function<bool(const QString&)> PhosphorRules::ContextRuleBridge::ContextRemap::activityAlive {}

◆ applies

std::function<bool(const Rule&)> PhosphorRules::ContextRuleBridge::ContextRemap::applies {}

◆ desktop

std::function<int(int)> PhosphorRules::ContextRuleBridge::ContextRemap::desktop {}

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