From: H.G. Muller Date: Sun, 10 Jul 2011 19:20:49 +0000 (+0200) Subject: Put grab on sweep-selecting in Edit Position X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=1becd4475ad0305ed0ef30d3366117d8d061d9da;p=xboard.git Put grab on sweep-selecting in Edit Position A right down-click starting a sweep-selection event did not grab the mouse events, so that an up-click outside the window would go unnoticed, and the pointer motion stayed coupled to selecting the piece until the next click. By returning 2 from the RightClick back-end routine we request the grab. --- diff --git a/backend.c b/backend.c index 21562ab..e73b5c6 100644 --- a/backend.c +++ b/backend.c @@ -7136,7 +7136,7 @@ int RightClick(ClickType action, int x, int y, int *fromX, int *fromY) toX = xSqr; toY = ySqr; lastX = x, lastY = y; if(flipView) toX = BOARD_WIDTH - 1 - toX; else toY = BOARD_HEIGHT - 1 - toY; NextPiece(0); - return -2; + return 2; // grab case IcsObserving: if(!appData.icsEngineAnalyze) return -1; case IcsPlayingWhite: