Compositor-agnostic snap assist candidate builder. More...
Functions | |
| PHOSPHORCOMPOSITOR_EXPORT PhosphorProtocol::SnapAssistCandidateList | buildCandidates (ICompositorBridge *bridge, const QString &excludeWindowId, const QString &screenId, const QSet< QString > &snappedWindowIds) |
| Build snap assist candidate list from all visible windows. | |
Compositor-agnostic snap assist candidate builder.
Filters windows through the ICompositorBridge interface to build the candidate JSON array for the snap assist overlay.
| PHOSPHORCOMPOSITOR_EXPORT PhosphorProtocol::SnapAssistCandidateList PhosphorCompositor::SnapAssistFilter::buildCandidates | ( | ICompositorBridge * | bridge, |
| const QString & | excludeWindowId, | ||
| const QString & | screenId, | ||
| const QSet< QString > & | snappedWindowIds | ||
| ) |
Build snap assist candidate list from all visible windows.
Filters out: minimized, wrong desktop/activity, excluded by shouldHandle, already snapped (by exact ID or appId with single instance), wrong physical monitor.
| bridge | Compositor bridge for window access |
| excludeWindowId | Window to exclude (the one that was just snapped) |
| screenId | Only include windows on the same physical monitor as this ID (empty = all). Sibling virtual screens of the same physical monitor are accepted — matched via PhosphorIdentity::VirtualScreenId::samePhysical. |
| snappedWindowIds | Set of window IDs that are already snapped |