|
|
@ -502,25 +502,29 @@ x11_compositor_deliver_button_event(struct x11_compositor *c, |
|
|
|
if (state) |
|
|
|
if (state) |
|
|
|
notify_axis(&c->base.seat->seat, |
|
|
|
notify_axis(&c->base.seat->seat, |
|
|
|
weston_compositor_get_time(), |
|
|
|
weston_compositor_get_time(), |
|
|
|
WL_POINTER_AXIS_VERTICAL_SCROLL, 1); |
|
|
|
WL_POINTER_AXIS_VERTICAL_SCROLL, |
|
|
|
|
|
|
|
wl_fixed_from_int(1)); |
|
|
|
return; |
|
|
|
return; |
|
|
|
case 5: |
|
|
|
case 5: |
|
|
|
if (state) |
|
|
|
if (state) |
|
|
|
notify_axis(&c->base.seat->seat, |
|
|
|
notify_axis(&c->base.seat->seat, |
|
|
|
weston_compositor_get_time(), |
|
|
|
weston_compositor_get_time(), |
|
|
|
WL_POINTER_AXIS_VERTICAL_SCROLL, -1); |
|
|
|
WL_POINTER_AXIS_VERTICAL_SCROLL, |
|
|
|
|
|
|
|
wl_fixed_from_int(-1)); |
|
|
|
return; |
|
|
|
return; |
|
|
|
case 6: |
|
|
|
case 6: |
|
|
|
if (state) |
|
|
|
if (state) |
|
|
|
notify_axis(&c->base.seat->seat, |
|
|
|
notify_axis(&c->base.seat->seat, |
|
|
|
weston_compositor_get_time(), |
|
|
|
weston_compositor_get_time(), |
|
|
|
WL_POINTER_AXIS_HORIZONTAL_SCROLL, 1); |
|
|
|
WL_POINTER_AXIS_HORIZONTAL_SCROLL, |
|
|
|
|
|
|
|
wl_fixed_from_int(1)); |
|
|
|
return; |
|
|
|
return; |
|
|
|
case 7: |
|
|
|
case 7: |
|
|
|
if (state) |
|
|
|
if (state) |
|
|
|
notify_axis(&c->base.seat->seat, |
|
|
|
notify_axis(&c->base.seat->seat, |
|
|
|
weston_compositor_get_time(), |
|
|
|
weston_compositor_get_time(), |
|
|
|
WL_POINTER_AXIS_HORIZONTAL_SCROLL, -1); |
|
|
|
WL_POINTER_AXIS_HORIZONTAL_SCROLL, |
|
|
|
|
|
|
|
wl_fixed_from_int(-1)); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|