Remove some left-over pseudo-popup code
authorH.G. Muller <h.g.muller@hccnet.nl>
Mon, 25 Jan 2010 23:17:21 +0000 (00:17 +0100)
committerArun Persaud <arun@nubati.net>
Sun, 7 Feb 2010 01:36:31 +0000 (17:36 -0800)
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.

backend.c

index c364fe2..bb7510f 100644 (file)
--- 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;