layout: store and preserve size and pos after fullscreen (#13500)

ref https://github.com/hyprwm/Hyprland/discussions/13401
This commit is contained in:
Vaxry 2026-03-02 18:57:09 +00:00 committed by GitHub
parent 5f650f8ed9
commit d98f7ffaf5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 124 additions and 0 deletions

View file

@ -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);
}