diff --git a/quickshell/Services/NiriService.qml b/quickshell/Services/NiriService.qml index ff13a51fb..f6ed40744 100644 --- a/quickshell/Services/NiriService.qml +++ b/quickshell/Services/NiriService.qml @@ -334,9 +334,18 @@ Singleton { } } + if (sameScales(displayScales, scales)) + return; displayScales = scales; } + function sameScales(a, b) { + const names = Object.keys(a); + if (names.length !== Object.keys(b).length) + return false; + return names.every(name => a[name] === b[name]); + } + function sortWindowsByLayout(windowList) { const enriched = windowList.map(w => { const ws = workspaces[w.workspace_id];