From: H.G. Muller Date: Mon, 8 Feb 2010 10:54:55 +0000 (+0100) Subject: Do not pop down Seek Graph on on-dot click X-Git-Tag: master-20100221~32 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=1cef4c7bc66248cfa1ab9e33ddfa336f9e083183;p=xboard.git Do not pop down Seek Graph on on-dot click Leave the graph up, and let the incoming board of a started game cause the pop-down. This in case the clicked ad is no longer vailable, or manuay refused, and fails to start a game. --- diff --git a/backend.c b/backend.c index 4ac6084..4abcc4a 100644 --- a/backend.c +++ b/backend.c @@ -2237,15 +2237,16 @@ int SeekGraphClick(ClickType click, int x, int y, int moving) DisplayMessage(second ? "!" : "", seekAdList[closest]); lastSecond = second; displayed = closest; } - sprintf(buf, "play %d\n", seekNrList[closest]); if(click == Press) { if(moving == 2) zList[closest] = 100; // right-click; push to back on press lastDown = closest; return TRUE; } // on press 'hit', only show info if(moving == 2) return TRUE; // ignore right up-clicks on dot + sprintf(buf, "play %d\n", seekNrList[closest]); SendToICS(ics_prefix); - SendToICS(buf); // should this be "sought all"? + SendToICS(buf); + return TRUE; // let incoming board of started game pop down the graph } else if(click == Release) { // release 'miss' is ignored zList[lastDown] = 100; // make future selection of the rejected ad more difficult if(moving == 2) { // right up-click