mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-09 16:41:53 -07:00
return full monitor box for fullscreen windows in idealBB
This commit is contained in:
@@ -59,6 +59,13 @@ wlr_box CWindow::getWindowIdealBoundingBoxIgnoreReserved() {
|
|||||||
auto POS = m_vPosition;
|
auto POS = m_vPosition;
|
||||||
auto SIZE = m_vSize;
|
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)) {
|
if (DELTALESSTHAN(POS.y - PMONITOR->vecPosition.y, PMONITOR->vecReservedTopLeft.y, 1)) {
|
||||||
POS.y = PMONITOR->vecPosition.y;
|
POS.y = PMONITOR->vecPosition.y;
|
||||||
SIZE.y += PMONITOR->vecReservedTopLeft.y;
|
SIZE.y += PMONITOR->vecReservedTopLeft.y;
|
||||||
|
Reference in New Issue
Block a user