# HG changeset patch # User Gerd Moellmann # Date 984493173 0 # Node ID a7358dadd49bfc27786c717c433fd225643bb88c # Parent 31befa53434f9013ff7e2b73eb5a142b2fe01362 [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include SscrollBarP.h. diff -r 31befa53434f -r a7358dadd49b src/xterm.c --- a/src/xterm.c Tue Mar 13 14:11:34 2001 +0000 +++ b/src/xterm.c Tue Mar 13 14:19:33 2001 +0000 @@ -117,7 +117,6 @@ #if defined USE_MOTIF #include /* for LESSTIF_VERSION */ #include -#include #else /* !USE_MOTIF i.e. use Xaw */ #ifdef HAVE_XAW3D @@ -9953,10 +9952,10 @@ 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))