Fix highlights clearing when highlight last move off
authorH.G.Muller <hgm@hgm-xboard.(none)>
Tue, 10 May 2016 18:26:56 +0000 (20:26 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Tue, 10 May 2016 18:26:56 +0000 (20:26 +0200)
When moves are not highlighted, the selected piece still is. But
this highlight should be erased after the move.

backend.c

index 2a34146..d7788cb 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -7945,6 +7945,7 @@ LeftClick (ClickType clickType, int xPix, int yPix)
        if(saveAnimate && !appData.animate && currentMove != oldMove && // drag-move was performed
           Explode(boards[currentMove-1], fromX, fromY, toX, toY))
            DrawPosition(TRUE, boards[currentMove]);
+       else DrawPosition(FALSE, NULL);
        fromX = fromY = -1;
        flashing = 0;
     }