diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2026-03-28 17:38:10 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-28 21:38:10 +0000 |
| commit | 83d3babd4e703156b89fcec5bb64390306902f6e (patch) | |
| tree | 80d74b34743ae93ab5ef96e5a438fa12e1762ed1 /src/desktop/view/Window.cpp | |
| parent | eb10ecf738b0ed229125768f7b5953494d59cf9d (diff) | |
desktop/reserved: do not crash on invalid box init (#13880)
ref #13879
Diffstat (limited to 'src/desktop/view/Window.cpp')
| -rw-r--r-- | src/desktop/view/Window.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/desktop/view/Window.cpp b/src/desktop/view/Window.cpp index 287440e8..2a388d68 100644 --- a/src/desktop/view/Window.cpp +++ b/src/desktop/view/Window.cpp @@ -285,6 +285,9 @@ CBox CWindow::getWindowIdealBoundingBoxIgnoreReserved() { const auto WORKAREA = m_workspace->m_space->workArea(); const auto& RESERVED = CReservedArea(PMONITOR->logicalBox(), WORKAREA); + if (!RESERVED.ok()) + return CBox{POS, SIZE}; + if (DELTALESSTHAN(POS.x, WORKAREA.x, 1)) { POS.x -= RESERVED.left(); SIZE.x += RESERVED.left(); |
