aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-10-29 14:37:33 +0100
committervaxerski <[email protected]>2022-10-29 14:37:33 +0100
commit2caebb3b108fdc57fd5da3d46832cbef51bd110f (patch)
tree72069ab67ba6249f61777b11d4ed11a94966bcd4
parent05f3eebd968455752eb95cee373bbf2d9a71deae (diff)
downloadHyprland-2caebb3b108fdc57fd5da3d46832cbef51bd110f.tar.gz
Hyprland-2caebb3b108fdc57fd5da3d46832cbef51bd110f.zip
fix default 0 in box passing test
-rw-r--r--src/render/Renderer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index 24e6accd..4a6ea6ca 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -1221,7 +1221,7 @@ bool CHyprRenderer::applyMonitorRule(CMonitor* pMonitor, SMonitorRule* pMonitorR
// updato wlroots
if (!pMonitor->isMirror()) {
- wlr_box box = {0, 0, 0, 0};
+ wlr_box box = {-UINT16_MAX, -UINT16_MAX, 0, 0};
wlr_output_layout_get_box(g_pCompositor->m_sWLROutputLayout, pMonitor->output, &box);
if (!DELTALESSTHAN(box.x, pMonitor->vecPosition.x, 1) || !DELTALESSTHAN(box.y, pMonitor->vecPosition.y, 1)) {