improved mouse handler
authorH.G. Muller <h.g.muller@hccnet.nl>
Fri, 23 Oct 2009 04:30:08 +0000 (21:30 -0700)
committerArun Persaud <arun@nubati.net>
Fri, 23 Oct 2009 04:30:08 +0000 (21:30 -0700)
The improved mouse handler still needed an extra call to DrawPosition to
work in XBoard.

backend.c

index 4582baa..7cd8dd7 100755 (executable)
--- a/backend.c
+++ b/backend.c
@@ -5670,6 +5670,7 @@ void LeftClick(ClickType clickType, int xPix, int yPix)
     if(x >= 0 && x < BOARD_LEFT || x >= BOARD_RGHT) {
        ClearHighlights();
        fromX = fromY = -1;
+       DrawPosition(FALSE, NULL);
        return;
     }