From d98f7ffaf5ce8fcfe901e4cdcb3dc0d1a5f48816 Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Mon, 2 Mar 2026 18:57:09 +0000 Subject: layout: store and preserve size and pos after fullscreen (#13500) ref https://github.com/hyprwm/Hyprland/discussions/13401 --- src/layout/space/Space.cpp | 5 +++++ src/layout/space/Space.hpp | 1 + 2 files changed, 6 insertions(+) (limited to 'src/layout/space') 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 t, Math::eDirection dir, bool sil m_algorithm->moveTargetInDirection(t, dir, silent); } +void CSpace::setTargetGeom(const CBox& box, SP target) { + if (m_algorithm) + m_algorithm->setTargetGeom(box, target); +} + SP CSpace::getNextCandidate(SP 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 target, eRectCorner corner = CORNER_NONE); void moveTarget(const Vector2D& Δ, SP target); + void setTargetGeom(const CBox& box, SP target); // only for float SP algorithm() const; -- cgit v1.2.3