From: H.G.Muller Date: Wed, 3 Feb 2016 08:23:15 +0000 (+0100) Subject: Clear highlights after moving piece in Edit Position X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=cd63bf5b43dae0ac9d9ae1efaba0e23270f65760 Clear highlights after moving piece in Edit Position When moving a piece during Edit position the from-square remained highlighted, but the to square was not highlighted, which would create the erroneous impression that the (now-empty) from-square was selected (and ready to obliterate a piece on the next click). Now this highlight is cleared. This was preferred over also highlighting the to-square, because this is not really a move in a game. --- diff --git a/backend.c b/backend.c index 2ccc54d..48a625a 100644 --- a/backend.c +++ b/backend.c @@ -7095,6 +7095,7 @@ UserMoveEvent(int fromX, int fromY, int toX, int toY, int promoChar) } } else boards[0][fromY][fromX] = gatingPiece; + ClearHighlights(); DrawPosition(FALSE, boards[currentMove]); return; }