compositor: fix isPointOnReservedArea

This commit is contained in:
Vaxry 2025-12-13 13:55:12 +00:00
parent fd5e790d08
commit 09e195d1f2
Signed by: vaxry
GPG key ID: 665806380871D640

View file

@ -1637,12 +1637,12 @@ bool CCompositor::isPointOnReservedArea(const Vector2D& point, const PHLMONITOR
const auto PMONITOR = pMonitor ? pMonitor : getMonitorFromVector(point);
auto box = PMONITOR->logicalBox();
if (VECNOTINRECT(point, box.x - 1, box.y - 1, box.w + 2, box.h + 2))
if (VECNOTINRECT(point, box.x - 1, box.y - 1, box.x + box.w + 1, box.y + box.h + 1))
return false;
PMONITOR->m_reservedArea.applyip(box);
return VECNOTINRECT(point, box.x, box.y, box.x, box.y);
return VECNOTINRECT(point, box.x, box.y, box.x + box.w, box.y + box.h);
}
CBox CCompositor::calculateX11WorkArea() {