From: H.G. Muller Date: Fri, 28 Sep 2012 18:28:05 +0000 (+0200) Subject: Cure some sick behavior in XBoard Engine Output right-clicks X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=a8ff0fa6ad8c25ee82872f9300654071eb334297;p=xboard.git Cure some sick behavior in XBoard Engine Output right-clicks When a PV-walk is in progress, the PV is highlighted by selecting it, and this focuses the attention of the scroll bar on it, so it remains in view. But after release, that line was kept in view, rather than scrolling back to the top of the window (where the header line bust be available for clicking) --- diff --git a/xengineoutput.c b/xengineoutput.c index 927f2f4..78269b8 100644 --- a/xengineoutput.c +++ b/xengineoutput.c @@ -165,9 +165,9 @@ InsertIntoMemo (int which, char * text, int where) char memoTranslations[] = ":Ctrlc: CopyMemoProc() \n \ : HandlePV() \n \ -Shift: select-start() SelectPV(1) \n \ -Any: select-start() SelectPV(0) \n \ -: extend-end() StopPV() \n"; +Shift: select-start() extend-end() SelectPV(1) \n \ +Any: select-start() extend-end() SelectPV(0) \n \ +: StopPV() \n"; void SelectPV (Widget w, XEvent * event, String * params, Cardinal * nParams) @@ -196,6 +196,7 @@ StopPV (Widget w, XEvent * event, String * params, Cardinal * nParams) XawTextUnsetSelection( w ); highTextStart[currentPV] = highTextEnd[currentPV] = 0; UnLoadPV(); + XtCallActionProc(w, "beginning-of-file", event, NULL, 0); } //------------------------- Ctrl-C copying of memo texts ---------------------------