From 1becd4475ad0305ed0ef30d3366117d8d061d9da Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 10 Jul 2011 21:20:49 +0200 Subject: [PATCH] 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. --- backend.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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: -- 1.7.0.4