From: H.G. Muller Date: Thu, 16 Feb 2012 12:16:13 +0000 (+0100) Subject: Don't leave piece selected after piece menu X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=8984be1d9e68b26eb3e0c9bfaa89434d915e80bf;p=xboard.git Don't leave piece selected after piece menu PieceMenuEvent left the just introduced piece selected, which is almost never what one wants, as it makes it jump to the next square when selects. Which is especially annoying if it captures the piece you wanted to grab... --- diff --git a/backend.c b/backend.c index d71b499..d08aea0 100644 --- a/backend.c +++ b/backend.c @@ -13909,6 +13909,8 @@ EditPositionMenuEvent (ChessSquare selection, int x, int y) } else boards[0][y][x] = selection; DrawPosition(TRUE, boards[0]); + ClearHighlights(); + fromX = fromY = -1; } break; }