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 GitHub
parent 6b2c08d3e8
commit 1c64ef06d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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();