fix default 0 in box passing test

This commit is contained in:
vaxerski 2022-10-29 14:37:33 +01:00
parent 05f3eebd96
commit 2caebb3b10

View file

@ -1221,7 +1221,7 @@ bool CHyprRenderer::applyMonitorRule(CMonitor* pMonitor, SMonitorRule* pMonitorR
// updato wlroots // updato wlroots
if (!pMonitor->isMirror()) { 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); 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)) { if (!DELTALESSTHAN(box.x, pMonitor->vecPosition.x, 1) || !DELTALESSTHAN(box.y, pMonitor->vecPosition.y, 1)) {