X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=71a795c05a7cbf6b323b33650dfb09048ce6a3ac;hb=f9f3643ce3447c431ee266ff241cad393872d416;hp=4974fed89370b31c76031fbac6d711b6cb421583;hpb=2fbce24cf46beda8a9049be879d5b82981ddf82d;p=xboard.git diff --git a/backend.c b/backend.c index 4974fed..71a795c 100644 --- a/backend.c +++ b/backend.c @@ -7574,7 +7574,7 @@ printf("A type=%d\n",clickType); return; } - if (clickType == Release && x == fromX && y == fromY && killX < 0) { + if (clickType == Release && x == fromX && y == fromY && killX < 0 && !sweepSelecting) { DragPieceEnd(xPix, yPix); dragging = 0; if(clearFlag) { // a deferred attempt to click-click move an empty square on top of a piece @@ -7588,10 +7588,9 @@ printf("A type=%d\n",clickType); /* Undo animation damage if any */ DrawPosition(FALSE, NULL); } - if (second || sweepSelecting) { + if (second) { /* Second up/down in same square; just abort move */ - if(sweepSelecting) DrawPosition(FALSE, boards[currentMove]); - second = sweepSelecting = 0; + second = 0; fromX = fromY = -1; gatingPiece = EmptySquare; MarkTargetSquares(1);