diff options
Diffstat (limited to 'static/modules/windows.js')
| -rw-r--r-- | static/modules/windows.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/static/modules/windows.js b/static/modules/windows.js index d3e882e..7404f03 100644 --- a/static/modules/windows.js +++ b/static/modules/windows.js @@ -110,6 +110,11 @@ export default { }, update(st, el) { + // Polled every second: rebuilding unchanged rows reloads every icon + // through its fallbacks, which flickers, so only a change re-renders. + const key = JSON.stringify(st); + if (key === el._last) return; + el._last = key; const ws = el.querySelector(".ws"); ws.textContent = ""; for (const id of st.workspaces ?? []) { |
