2001-03-13 Gerd Moellmann <gerd@gnu.org>
+ * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
+ SscrollBarP.h.
+
* xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Don't
access private scroll bar data; it's no longer necessary with
contemporary LessTif.
#if defined USE_MOTIF
#include <Xm/Xm.h> /* for LESSTIF_VERSION */
#include <Xm/ScrollBar.h>
-#include <Xm/ScrollBarP.h>
#else /* !USE_MOTIF i.e. use Xaw */
#ifdef HAVE_XAW3D
f = x_any_window_to_frame (dpyinfo, event.xkey.window);
#if defined USE_MOTIF && defined USE_TOOLKIT_SCROLL_BARS
- /* I couldn't find a way to prevent LessTif scroll bars
- from consuming key events. */
if (f == 0)
{
+ /* Scroll bars consume key events, but we want
+ the keys to go to the scroll bar's frame. */
Widget widget = XtWindowToWidget (dpyinfo->display,
event.xkey.window);
if (widget && XmIsScrollBar (widget))