Keyboard navigation of menus in applications built against Motif 2.3.4 is broken.
This is a regression for applications that were previously built against Lesstif but have been built against Motif in Saucy, see the transition bug LP: #1222747. The fix is an updated patch for upstream bug #1565 , provided by upstream.
Install and run xball (or any other Motif application with a menu bar).
Click on 'File' in the menu bar (or press Alt-F).
Now press Left Arrow or Right Arrow and the highlight should move left and right through the horizontal menu options (File, Actions, Options and Help).
Now press Up Arrow, Down Arrow or Enter and nothing happens, the expect behaviour is that the highlight should move through the vertical menu options and the option be actioned.
This patch affects the operation of ComboBox, PopupMenu, OptionMenu and DropDownList widgets in applications built against Motif.
The behaviour of the original bug #1565 and previous versions of the patch to fix it were different on different display managers / window managers. I have successfully tested the current patch in Unity, MWM, XFCE, FluxBox, LXDE, GNOME, KDE and Openbox.
In this SRU, I would like to include fixes for two additional bugs:
- the undefined use of sprintf in lib/Xm/XmRenderT.c where the source and destination buffers overlap (upstream bug #1628 )
- an array bounds error in lib/Xm/DataF.c where _XmDataFieldIsWSpace() is called with num_entries = 3 (upstream bug #1629 )
I believe the fixes for these are trivial and the regression potential for them is low.