From 142443659db257ea5a031ce428d53e80452b0098 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Wed, 18 Jan 2006 07:29:52 +0000 Subject: [PATCH] fix sticking highlight in selector knots --- src/knot.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/knot.cpp b/src/knot.cpp index af567e6e4..12fa71066 100644 --- a/src/knot.cpp +++ b/src/knot.cpp @@ -798,7 +798,8 @@ void sp_knot_set_position(SPKnot *knot, NR::Point *p, guint state) } /** - * Move knot to new position, without emitting a MOVED signal. + * Move knot to new position, without emitting a MOVED signal. We can't be sure this artificial + * move has moved the knot from under cursor, but it seems likely, so we clear SP_KNOT_MOUSEOVER. */ void sp_knot_moveto(SPKnot *knot, NR::Point *p) { @@ -810,6 +811,8 @@ void sp_knot_moveto(SPKnot *knot, NR::Point *p) if (knot->item) { SP_CTRL(knot->item)->moveto (*p); } + + sp_knot_set_flag(knot, SP_KNOT_MOUSEOVER, FALSE); } /** -- 2.30.2