desktop/window: fix idealBB reserved (#13421)

ref https://github.com/hyprwm/Hyprland/discussions/12766\#discussioncomment-15955638
This commit is contained in:
Vaxry 2026-02-28 16:55:34 +00:00 committed by Vaxry
parent 60dc22cdd3
commit da8a3684a6
Signed by: vaxry
GPG key ID: 665806380871D640

View file

@ -277,7 +277,7 @@ CBox CWindow::getWindowIdealBoundingBoxIgnoreReserved() {
// fucker fucking fuck
const auto WORKAREA = m_workspace->m_space->workArea();
const auto& RESERVED = PMONITOR->m_reservedArea;
const auto& RESERVED = CReservedArea(PMONITOR->logicalBox(), WORKAREA);
if (DELTALESSTHAN(POS.x, WORKAREA.x, 1)) {
POS.x -= RESERVED.left();