7#include <phosphortileengine_export.h>
45 void markOverflow(
const QString& windowId,
const QString& screenId);
73 QStringList
applyOverflow(
const QString& screenId,
const QStringList& windows,
int tileCount);
90 QStringList
recoverIfRoom(
const QString& screenId,
int tiledCount,
int maxWindows,
91 const std::function<
bool(
const QString&)>& isFloating,
92 const std::function<
bool(
const QString&)>& containsWindow);
128 QHash<QString, QSet<QString>> m_overflow;
129 QHash<QString, QString> m_windowToScreen;
Per-screen overflow window tracking (pure tracking — no PhosphorTiles::TilingState mutation)
Definition OverflowManager.h:36
void migrateWindow(const QString &windowId)
Clear overflow status when a window migrates between screens.
bool isEmpty() const
Check if there are any overflow windows tracked.
bool isOverflow(const QString &windowId) const
Check if a window is currently overflow-tracked.
QSet< QString > takeForScreen(const QString &screenId)
Take and remove all overflow entries for a screen.
void clearOverflow(const QString &windowId)
Clear overflow status for a window (any screen)
QStringList recoverIfRoom(const QString &screenId, int tiledCount, int maxWindows, const std::function< bool(const QString &)> &isFloating, const std::function< bool(const QString &)> &containsWindow)
Identify overflow windows that should be unfloated when room opens.
void clearForRemovedScreens(const QSet< QString > &activeScreens)
Clear overflow entries for windows on screens not in the active set.
QStringList applyOverflow(const QString &screenId, const QStringList &windows, int tileCount)
Identify windows beyond tileCount that should be auto-floated.
void markOverflow(const QString &windowId, const QString &screenId)
Mark a window as overflow on a specific screen.
Definition AutotileConfig.h:14