Mercurial > emacs
changeset 36774:a7358dadd49b
[USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
SscrollBarP.h.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Tue, 13 Mar 2001 14:19:33 +0000 |
parents | 31befa53434f |
children | 5ace71a7262b |
files | src/xterm.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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 <Xm/Xm.h> /* for LESSTIF_VERSION */ #include <Xm/ScrollBar.h> -#include <Xm/ScrollBarP.h> #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))