From: H.G. Muller Date: Mon, 25 Jan 2010 23:17:21 +0000 (+0100) Subject: Remove some left-over pseudo-popup code X-Git-Tag: gtk-20100206~7 X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=dd5cb5a354036d69172eeec2dd5c0cbb49b5c2c8 Remove some left-over pseudo-popup code The code to block same-square and empty-square up-clicks from selecting something is not desirable anymore now the popup has its own window. --- diff --git a/backend.c b/backend.c index c364fe2..bb7510f 100644 --- a/backend.c +++ b/backend.c @@ -6450,9 +6450,7 @@ int RightClick(ClickType action, int x, int y, int *xx, int *yy) xSqr = BOARD_WIDTH - 1 - xSqr; else ySqr = BOARD_HEIGHT - 1 - ySqr; - if(promotionChoice == 3 && action == Release - && promoBoard[ySqr][xSqr] != EmptySquare && (xSqr != fromX || ySqr != fromY) // not needed if separate window - ) { + if(promotionChoice == 3 && action == Release) { EditPositionMenuEvent(promoBoard[ySqr][xSqr], fromX, fromY); fromX = fromY = -1; promotionChoice = 0;