desktop/window: fix idealBB reserved (#13421)
ref https://github.com/hyprwm/Hyprland/discussions/12766\#discussioncomment-15955638
This commit is contained in:
parent
6b2c08d3e8
commit
1c64ef06d9
1 changed files with 1 additions and 1 deletions
|
|
@ -277,7 +277,7 @@ CBox CWindow::getWindowIdealBoundingBoxIgnoreReserved() {
|
||||||
|
|
||||||
// fucker fucking fuck
|
// fucker fucking fuck
|
||||||
const auto WORKAREA = m_workspace->m_space->workArea();
|
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)) {
|
if (DELTALESSTHAN(POS.x, WORKAREA.x, 1)) {
|
||||||
POS.x -= RESERVED.left();
|
POS.x -= RESERVED.left();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue