mirror of
https://github.com/hyprwm/Hyprland
synced 2025-12-20 04:10:04 +01:00
compositor: fix isPointOnReservedArea
This commit is contained in:
parent
fd5e790d08
commit
09e195d1f2
1 changed files with 2 additions and 2 deletions
|
|
@ -1637,12 +1637,12 @@ bool CCompositor::isPointOnReservedArea(const Vector2D& point, const PHLMONITOR
|
||||||
const auto PMONITOR = pMonitor ? pMonitor : getMonitorFromVector(point);
|
const auto PMONITOR = pMonitor ? pMonitor : getMonitorFromVector(point);
|
||||||
|
|
||||||
auto box = PMONITOR->logicalBox();
|
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;
|
return false;
|
||||||
|
|
||||||
PMONITOR->m_reservedArea.applyip(box);
|
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() {
|
CBox CCompositor::calculateX11WorkArea() {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue