1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-29 07:52:50 -05:00

scaling: snap value reported by wlr-output

This commit is contained in:
bbedward
2025-11-16 15:56:59 -05:00
parent ea9b0d2a79
commit f2deaeccdb
4 changed files with 12 additions and 23 deletions

View File

@@ -38,7 +38,7 @@ Singleton {
if (WlrOutputService.wlrOutputAvailable && screen) {
const wlrOutput = WlrOutputService.getOutput(screen.name)
if (wlrOutput?.enabled && wlrOutput.scale !== undefined && wlrOutput.scale > 0) {
return wlrOutput.scale
return Math.round(wlrOutput.scale * 20) / 20
}
}