In some Xt implementations calling extend-end with 0 params causes a crash,
although the mmanual specifies this should default to a call with 'PRIMARY'.
The default selection is now explicitly mentioned in all extend-end calls.
// [HGM] vari: another hideous kludge: call extend-end first so we can be sure select-start works,
// as the widget is destroyed before the up-click can call extend-end
-char commentTranslations[] = "<Btn3Down>: extend-end() select-start() CommentClick() \n";
+char commentTranslations[] = "<Btn3Down>: extend-end(PRIMARY) select-start() CommentClick() \n";
String xboardResources[] = {
"*Error*translations: #override\\n <Key>Return: ErrorPopDown()",
char memoTranslations[] =
":Ctrl<Key>c: CopyMemoProc() \n \
<Btn3Motion>: HandlePV() \n \
-Shift<Btn3Down>: select-start() extend-end() SelectPV(1) \n \
-Any<Btn3Down>: select-start() extend-end() SelectPV(0) \n \
+Shift<Btn3Down>: select-start() extend-end(PRIMARY) SelectPV(1) \n \
+Any<Btn3Down>: select-start() extend-end(PRIMARY) SelectPV(0) \n \
<Btn3Up>: StopPV() \n";
void
char *historyText;
char historyTranslations[] =
"<Btn3Down>: select-start() \n \
-<Btn3Up>: extend-end() SelectMove() \n";
+<Btn3Up>: extend-end(PRIMARY) SelectMove() \n";
void
SelectMoveX (Widget w, XEvent * event, String * params, Cardinal * nParams)