X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=2a341463389f8be8652bbdc52727b14e31114d6d;hb=0fd4e9af50fa73c26252d2fe3921258c3029c19e;hp=6b206ead9e1fa924b081a4c591f207ed2cddb6d0;hpb=bf46b046e8fb8c92755baa90dfabcca634014e77;p=xboard.git diff --git a/backend.c b/backend.c index 6b206ea..2a34146 100644 --- a/backend.c +++ b/backend.c @@ -7898,8 +7898,10 @@ LeftClick (ClickType clickType, int xPix, int yPix) } // off-board moves should not be highlighted - if(x < 0 || y < 0) ClearHighlights(); - else ReportClick("put", x, y); + if(x < 0 || y < 0) { + ClearHighlights(); + DrawPosition(FALSE, NULL); + } else ReportClick("put", x, y); if(gatingPiece != EmptySquare && gameInfo.variant == VariantSChess) promoChoice = ToLower(PieceToChar(gatingPiece)); }