From 6797b31d2e31a49ac66eca185cc84fd2117346b9 Mon Sep 17 00:00:00 2001 From: Martino Ferrari Date: Tue, 6 Oct 2026 23:33:03 +0200 Subject: [PATCH] fix: an armed output highlights every other node's inputs, so the second click is visible Co-Authored-By: Claude Opus 4.6 --- src/ui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui.cpp b/src/ui.cpp index 94eb173..c68d260 100644 --- a/src/ui.cpp +++ b/src/ui.cpp @@ -3449,7 +3449,7 @@ void math_canvas_draw(GtkDrawingArea*, cairo_t* cr, int width, int height, gpoin double px = 0.0; double py = 0.0; math_input_pos(n, k, px, py); - const bool armed = d->pending_out >= 0 && static_cast(i) > d->pending_out; + const bool armed = d->pending_out >= 0 && static_cast(i) != d->pending_out; cairo_set_source_rgb(cr, armed ? 1.0 : 0.45, armed ? 0.69 : 0.52, armed ? 0.13 : 0.62); cairo_rectangle(cr, px - kPort * 0.5, py - kPort * 0.5, kPort, kPort); cairo_fill(cr);