From f856eb7ac5fbeec648f7fd27013905f0a5a26616 Mon Sep 17 00:00:00 2001
From: H.G.Muller <hgm@hgm-xboard.(none)>
Date: Sun, 6 Mar 2016 23:45:54 +0100
Subject: [PATCH] Prevent out-of-turn grabbing of piece in analysis mode

In Analyze modeit was possible to grab pieces for dragging of the side
that did not have the move.
---
 backend.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/backend.c b/backend.c
index f2fc3f3..c487dd1 100644
--- a/backend.c
+++ b/backend.c
@@ -6850,6 +6850,7 @@ OKToStartUserMove (int x, int y)
       case PlayFromGameFile:
 	    if(!shiftKey || !appData.variations) return FALSE; // [HGM] allow starting variation in this mode
       case EditGame:
+      case AnalyzeMode:
 	if (!white_piece && WhiteOnMove(currentMove)) {
 	    DisplayMoveError(_("It is White's turn"));
 	    return FALSE;
-- 
1.7.0.4