diff options
author | Gabriel Ford <[email protected]> | 2024-05-18 18:28:48 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-05-18 19:28:48 +0100 |
commit | c21a5a934061c248ff1cdd459a74a05b621fb427 (patch) | |
tree | 8e0dad868973c933429dafd215eca4107178fd47 /src/layout | |
parent | 2ead1fd22103ce065661555513bace5897083ded (diff) | |
download | Hyprland-c21a5a934061c248ff1cdd459a74a05b621fb427.tar.gz Hyprland-c21a5a934061c248ff1cdd459a74a05b621fb427.zip |
layout: Fix shrinking pseudotile windows. (#6143)
Diffstat (limited to 'src/layout')
-rw-r--r-- | src/layout/IHyprLayout.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp index a31180e1..ffd9ddea 100644 --- a/src/layout/IHyprLayout.cpp +++ b/src/layout/IHyprLayout.cpp @@ -523,7 +523,7 @@ void IHyprLayout::changeWindowFloatingMode(PHLWINDOW pWindow) { CBox wb = {pWindow->m_vRealPosition.goal() + (pWindow->m_vRealSize.goal() - pWindow->m_vLastFloatingSize) / 2.f, pWindow->m_vLastFloatingSize}; wb.round(); - if (DELTALESSTHAN(pWindow->m_vRealSize.value().x, pWindow->m_vLastFloatingSize.x, 10) && + if (!(pWindow->m_bIsFloating && pWindow->m_bIsPseudotiled) && DELTALESSTHAN(pWindow->m_vRealSize.value().x, pWindow->m_vLastFloatingSize.x, 10) && DELTALESSTHAN(pWindow->m_vRealSize.value().y, pWindow->m_vLastFloatingSize.y, 10)) { wb = {wb.pos() + Vector2D{10, 10}, wb.size() - Vector2D{20, 20}}; } |