dpyinfo->scroll.acc_x += delta_x;
dpyinfo->scroll.acc_y += delta_y;
if (dpyinfo->scroll.acc_y >= dpyinfo->scroll.y_per_line
- || !x_coalesce_scroll_events)
+ || !mwheel_coalesce_scroll_events)
{
int nlines = dpyinfo->scroll.acc_y / dpyinfo->scroll.y_per_line;
inev.ie.kind = WHEEL_EVENT;
inev.ie.arg = list3 (make_fixnum (nlines),
make_float (-dpyinfo->scroll.acc_x * 100),
make_float (-dpyinfo->scroll.acc_y * 100));
- if (!x_coalesce_scroll_events)
+ if (!mwheel_coalesce_scroll_events)
{
dpyinfo->scroll.acc_y = 0;
dpyinfo->scroll.acc_x = 0;
}
}
else if (dpyinfo->scroll.acc_y <= -dpyinfo->scroll.y_per_line
- || !x_coalesce_scroll_events)
+ || !mwheel_coalesce_scroll_events)
{
int nlines = -dpyinfo->scroll.acc_y / dpyinfo->scroll.y_per_line;
inev.ie.kind = WHEEL_EVENT;
make_float (-dpyinfo->scroll.acc_x * 100),
make_float (-dpyinfo->scroll.acc_y * 100));
- if (!x_coalesce_scroll_events)
+ if (!mwheel_coalesce_scroll_events)
{
dpyinfo->scroll.acc_y = 0;
dpyinfo->scroll.acc_x = 0;
dpyinfo->scroll.acc_y -= -dpyinfo->scroll.y_per_line * nlines;
}
else if (dpyinfo->scroll.acc_x >= dpyinfo->scroll.x_per_char
- || !x_coalesce_scroll_events)
+ || !mwheel_coalesce_scroll_events)
{
int nchars = dpyinfo->scroll.acc_x / dpyinfo->scroll.x_per_char;
inev.ie.kind = HORIZ_WHEEL_EVENT;
make_float (-dpyinfo->scroll.acc_x * 100),
make_float (-dpyinfo->scroll.acc_y * 100));
- if (x_coalesce_scroll_events)
+ if (mwheel_coalesce_scroll_events)
dpyinfo->scroll.acc_x -= dpyinfo->scroll.x_per_char * nchars;
else
{
make_float (-dpyinfo->scroll.acc_x * 100),
make_float (-dpyinfo->scroll.acc_y * 100));
- if (x_coalesce_scroll_events)
+ if (mwheel_coalesce_scroll_events)
dpyinfo->scroll.acc_x -= -dpyinfo->scroll.x_per_char * nchars;
else
{
window_being_scrolled = Qnil;
staticpro (&window_being_scrolled);
- DEFVAR_BOOL ("x-coalesce-scroll-events", x_coalesce_scroll_events,
- doc: /* SKIP: real doc in xterm.c. */);
- x_coalesce_scroll_events = true;
-
/* Tell Emacs about this window system. */
Fprovide (Qpgtk, Qnil);
}