diff options
Diffstat (limited to 'src/layout/LayoutManager.hpp')
| -rw-r--r-- | src/layout/LayoutManager.hpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/layout/LayoutManager.hpp b/src/layout/LayoutManager.hpp index ef886daa..1e509586 100644 --- a/src/layout/LayoutManager.hpp +++ b/src/layout/LayoutManager.hpp @@ -50,6 +50,13 @@ namespace Layout { CLayoutManager(); ~CLayoutManager() = default; + enum eRecalculateMonitorReason : uint8_t { + RECALCULATE_MONITOR_REASON_UNKNOWN, // when the recalculate monitor reason is unknown or not important to preserve + RECALCULATE_MONITOR_REASON_WORKSPACE_CHANGE, + RECALCULATE_MONITOR_REASON_TOGGLE_SPECIAL_WORKSPACE, + RECALCULATE_MONITOR_REASON_TOGGLE_FULLSCREEN, + }; + void newTarget(SP<ITarget> target, SP<CSpace> space); void removeTarget(SP<ITarget> target); @@ -81,7 +88,7 @@ namespace Layout { void performSnap(Vector2D& sourcePos, Vector2D& sourceSize, SP<ITarget> target, eMouseBindMode mode, int corner, const Vector2D& beginSize); void invalidateMonitorGeometries(PHLMONITOR); - void recalculateMonitor(PHLMONITOR); + void recalculateMonitor(PHLMONITOR, eRecalculateMonitorReason reason = RECALCULATE_MONITOR_REASON_UNKNOWN); const UP<Supplementary::CDragStateController>& dragController(); |
