projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
c0b6d30
)
Suppress lift command on deselecting piece
author
H.G.Muller
<hgm@hgm-xboard.(none)>
Wed, 18 Feb 2015 21:54:12 +0000 (22:54 +0100)
committer
H.G.Muller
<hgm@hgm-xboard.(none)>
Thu, 7 May 2015 18:53:32 +0000 (20:53 +0200)
A click on the selected piece deselects it, and thus should not
result in a lift command to prompt highlighting of its moves.
backend.c
patch
|
blob
|
history
diff --git
a/backend.c
b/backend.c
index
ad78134
..
3730e07
100644
(file)
--- a/
backend.c
+++ b/
backend.c
@@
-7556,7
+7556,7
@@
printf("to click %d,%d\n",x,y);
else gatingPiece = doubleClick ? fromP : EmptySquare;
fromX = x;
fromY = y; dragging = 1;
- ReportClick("lift", x, y);
+ if(!second) ReportClick("lift", x, y);
MarkTargetSquares(0);
DragPieceBegin(xPix, yPix, FALSE);
if(appData.sweepSelect && CanPromote(piece = boards[currentMove][y][x], y)) {