Package: xpdf Version: 3.02-12 Broken mouse button 1 binding causes bugs, suchs as:
* When selecting text with mouse button 1, the selected area is not highlighted until the button is released and the selection is complete. * If button 1 is bound to panning in .xpdfrc then trying to pan with button 1 does nothing. This is due to a motif behavior that is well documented in online forums. Below is a patch that fixes this problem, in particular the two behaviors listed above. (by the way "strongly encouraging" someone to use your fancy new tool (reportbug) (instead of an older, reliable method) that does something such as crashing on 'submit' and doesn't even save its state, is becoming ever more common in the free software world. However, it is a good way to annoy people and make yourself look foolish.) John Lapeyre ---------------------------------------- diff -rupN xpdf-3.02/xpdf/XPDFCore.cc xpdf-3.02.new/xpdf/XPDFCore.cc --- xpdf-3.02/xpdf/XPDFCore.cc 2007-02-27 23:05:52.000000000 +0100 +++ xpdf-3.02.new/xpdf/XPDFCore.cc 2011-05-20 14:40:33.000000000 +0200 @@ -949,12 +949,16 @@ void XPDFCore::initWindow() { XtAddCallback(drawArea, XmNinputCallback, &inputCbk, (XtPointer)this); resizeCbk(drawArea, this, NULL); - // set up mouse motion translations - XtOverrideTranslations(drawArea, XtParseTranslationTable( - "<Btn1Down>:DrawingAreaInput()\n" - "<Btn1Up>:DrawingAreaInput()\n" - "<Btn1Motion>:DrawingAreaInput()\n" - "<Motion>:DrawingAreaInput()")); + static char translations[] = + "<BtnDown>:DrawingAreaInput()\n\ + <BtnMotion>:DrawingAreaInput()\n \ + <BtnUp>:DrawingAreaInput()\n \ + <KeyUp>:DrawingAreaInput()\n \ + <KeyDown>:DrawingAreaInput()\n \ + <Motion>:DrawingAreaInput()"; + + XtSetArg(args[0], XtNtranslations,XtParseTranslationTable(translations)); + XtSetValues(drawArea, args, 1); // can't create a GC until the window gets mapped drawAreaGC = NULL; ---------------------------------------- -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org