mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 05:29:48 +01:00
sanitize scale better
This commit is contained in:
parent
5112056fdb
commit
3436486575
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue