From da1cbb8f1d603a2a0e5ef525fa7e145c38baa32b Mon Sep 17 00:00:00 2001 From: Eddy De Greef Date: Fri, 16 Apr 2004 08:15:41 +0000 Subject: [PATCH] Fix for SF bug #925951: nedit 5.4 crashes when dragging a calltip. It appears to be a bug in SUN's Motif. Dragging is now disabled. --- source/calltips.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/calltips.c b/source/calltips.c index 89f1222..2956553 100644 --- a/source/calltips.c +++ b/source/calltips.c @@ -277,6 +277,15 @@ int ShowCalltip(WindowInfo *window, char *text, Boolean anchored, XmNforeground, textD->calltipFGPixel, XmNbackground, textD->calltipBGPixel, NULL ); + + /* Workaround for Button-2 drag crash on Solaris: disable dragging. */ + { + static const char dragTranslations[] = ": \n"; + static XtTranslations trans_table = NULL; + if (trans_table == NULL) + trans_table = XtParseTranslationTable(dragTranslations); + XtOverrideTranslations(textD->calltipW, trans_table); + } } /* Set the text on the label */ -- 2.11.4.GIT