]> git.eshelyaron.com Git - emacs.git/commitdiff
[USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
authorGerd Moellmann <gerd@gnu.org>
Tue, 13 Mar 2001 14:20:01 +0000 (14:20 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 13 Mar 2001 14:20:01 +0000 (14:20 +0000)
SscrollBarP.h.

src/ChangeLog
src/xterm.c

index 0d651b834c70dd280ddb4f3e127fa71c98c88336..8a81d0fa6293020e75148b8e42a4b350037262ef 100644 (file)
@@ -1,5 +1,8 @@
 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.
index b064426b1d504b9dac0dc1bcde057e44fc2d9c97..eaecea5410269f5ecb9a6a68edfd64f9f452292b 100644 (file)
@@ -117,7 +117,6 @@ extern void _XEditResCheckMessages ();
 #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 @@ XTread_socket (sd, bufp, numchars, expected)
              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))