1 --- scrollbar.c.orig	2016-11-04 21:41:21 UTC
2 +++ scrollbar.c
3 @@ -49,6 +49,7 @@ extern int BackgroundPixmapIsOn;
4  static void ScrollTextTo();
5  static void ScrollTextUpDownBy();
6 
7 +extern Boolean SendMousePosition();
8 
9  /* resize the text window for a terminal screen, modifying the
10   * appropriate WM_SIZE_HINTS and taking advantage of bit gravity.
11 @@ -555,6 +556,7 @@ void HandleScrollForward (gw, event, params, nparams)
12      XtermWidget w = (XtermWidget) gw;
13      register TScreen *screen = &w->screen;
14 
15 +    if (SendMousePosition(gw, event)) return;
16      ScrollTextUpDownBy (gw, (XtPointer) NULL,
17  			(XtPointer)params_to_pixels (screen, params, (int) *nparams));
18      return;
19 @@ -571,6 +573,7 @@ void HandleScrollBack (gw, event, params, nparams)
20      XtermWidget w = (XtermWidget) gw;
21      register TScreen *screen = &w->screen;
22 
23 +    if (SendMousePosition(gw, event)) return;
24      ScrollTextUpDownBy (gw, (XtPointer) NULL,
25  			(XtPointer)-params_to_pixels (screen, params, (int) *nparams));
26      return;
27