From 535fe56b7628e2bd4d2a42c41d218aa425255de0 Mon Sep 17 00:00:00 2001 From: rope Date: Tue, 4 Aug 2026 09:37:16 +0100 Subject: [PATCH] quickshell: fix worm never appearing (var array reassign emits no notify) Co-Authored-By: Claude Opus 5 --- settings/quickshell.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/settings/quickshell.nix b/settings/quickshell.nix index 3ca5521..d50eec0 100644 --- a/settings/quickshell.nix +++ b/settings/quickshell.nix @@ -872,7 +872,12 @@ in let t = worm.trail; t.unshift(Qt.point(nx, ny)); if (t.length > weird.segments * weird.lag) t.pop(); - worm.trail = t; // reassign: arrays don't notify on mutation + // slice(), not `t`: a var property assigned the array + // it already holds emits no change signal, so the + // segments would bind once to an empty trail and never + // hear about a single tick. Copy = new reference = + // notification. 30 short arrays a second is nothing. + worm.trail = t.slice(); } }