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/LayoutManager.cpp | |
| 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/LayoutManager.cpp')
| -rw-r--r-- | src/layout/LayoutManager.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/layout/LayoutManager.cpp b/src/layout/LayoutManager.cpp index 56fa508d..4a93809c 100644 --- a/src/layout/LayoutManager.cpp +++ b/src/layout/LayoutManager.cpp @@ -61,6 +61,13 @@ void CLayoutManager::resizeTarget(const Vector2D& Δ, SP<ITarget> target, eRectC target->space()->resizeTarget(Δ, target, corner); } +void CLayoutManager::setTargetGeom(const CBox& box, SP<ITarget> target) { + if (!target->floating()) + return; + + target->space()->setTargetGeom(box, target); +} + std::expected<void, std::string> CLayoutManager::layoutMsg(const std::string_view& sv) { const auto MONITOR = Desktop::focusState()->monitor(); |
