From a8ff0fa6ad8c25ee82872f9300654071eb334297 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Fri, 28 Sep 2012 20:28:05 +0200 Subject: [PATCH] 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) --- xengineoutput.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) 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 --------------------------- -- 1.7.0.4