sanitize scale better

This commit is contained in:
Vaxry 2023-01-20 16:03:52 +01:00
parent 5112056fdb
commit 3436486575

View file

@ -1171,7 +1171,7 @@ bool CHyprRenderer::applyMonitorRule(CMonitor* pMonitor, SMonitorRule* pMonitorR
return true; return true;
} }
if (pMonitorRule->scale != -1) { if (pMonitorRule->scale > 0.1) {
wlr_output_set_scale(pMonitor->output, pMonitorRule->scale); wlr_output_set_scale(pMonitor->output, pMonitorRule->scale);
pMonitor->scale = pMonitorRule->scale; pMonitor->scale = pMonitorRule->scale;
} else { } else {