diff options
| author | Vaxry <vaxry@vaxry.net> | 2025-12-13 13:55:12 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2025-12-13 13:55:49 +0000 |
| commit | 09e195d1f293a876ce21a077af3d7c5047881b79 (patch) | |
| tree | a1d9e51896f1e643cc6f0e55e878f7900468021c /src/Compositor.cpp | |
| parent | fd5e790d08ae5504a9604d3537172b2c944b003b (diff) | |
compositor: fix isPointOnReservedArea
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index d83b93a5..3c67979f 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -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() { |
