diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2026-03-02 18:57:09 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-02 18:57:09 +0000 |
| commit | d98f7ffaf5ce8fcfe901e4cdcb3dc0d1a5f48816 (patch) | |
| tree | e4d35bfca286f36d56f859370aa0b5b2f8681c24 /src/layout/space | |
| parent | 5f650f8ed99705f51b473e592c974a7ddaa3c9d7 (diff) | |
layout: store and preserve size and pos after fullscreen (#13500)
ref https://github.com/hyprwm/Hyprland/discussions/13401
Diffstat (limited to 'src/layout/space')
| -rw-r--r-- | src/layout/space/Space.cpp | 5 | ||||
| -rw-r--r-- | src/layout/space/Space.hpp | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/layout/space/Space.cpp b/src/layout/space/Space.cpp index 33e5bb8c..db3925f6 100644 --- a/src/layout/space/Space.cpp +++ b/src/layout/space/Space.cpp @@ -183,6 +183,11 @@ void CSpace::moveTargetInDirection(SP<ITarget> t, Math::eDirection dir, bool sil m_algorithm->moveTargetInDirection(t, dir, silent); } +void CSpace::setTargetGeom(const CBox& box, SP<ITarget> target) { + if (m_algorithm) + m_algorithm->setTargetGeom(box, target); +} + SP<ITarget> CSpace::getNextCandidate(SP<ITarget> old) { return !m_algorithm ? nullptr : m_algorithm->getNextCandidate(old); } diff --git a/src/layout/space/Space.hpp b/src/layout/space/Space.hpp index ff3d18e6..e29a6d8f 100644 --- a/src/layout/space/Space.hpp +++ b/src/layout/space/Space.hpp @@ -47,6 +47,7 @@ namespace Layout { void resizeTarget(const Vector2D& Δ, SP<ITarget> target, eRectCorner corner = CORNER_NONE); void moveTarget(const Vector2D& Δ, SP<ITarget> target); + void setTargetGeom(const CBox& box, SP<ITarget> target); // only for float SP<CAlgorithm> algorithm() const; |
