From 95047fb08327c5a9c38e5daa46cc3241a1b69cbe Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 21 Nov 2022 23:33:23 +0000 Subject: [PATCH] return full monitor box for fullscreen windows in idealBB --- src/Window.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Window.cpp b/src/Window.cpp index 66035f42..e98193e1 100644 --- a/src/Window.cpp +++ b/src/Window.cpp @@ -59,6 +59,13 @@ wlr_box CWindow::getWindowIdealBoundingBoxIgnoreReserved() { auto POS = m_vPosition; auto SIZE = m_vSize; + if (m_bIsFullscreen) { + POS = PMONITOR->vecPosition; + SIZE = PMONITOR->vecSize; + + return wlr_box{(int)POS.x, (int)POS.y, (int)SIZE.x, (int)SIZE.y}; + } + if (DELTALESSTHAN(POS.y - PMONITOR->vecPosition.y, PMONITOR->vecReservedTopLeft.y, 1)) { POS.y = PMONITOR->vecPosition.y; SIZE.y += PMONITOR->vecReservedTopLeft.y;