diff options
Diffstat (limited to 'src/compositor-rdp.c')
-rw-r--r-- | src/compositor-rdp.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/compositor-rdp.c b/src/compositor-rdp.c index 1bf744cb..d6d2fa17 100644 --- a/src/compositor-rdp.c +++ b/src/compositor-rdp.c @@ -971,6 +971,8 @@ xf_mouseEvent(rdpInput *input, UINT16 flags, UINT16 x, UINT16 y) } if (flags & PTR_FLAGS_WHEEL) { + struct weston_pointer_axis_event weston_event; + /* DEFAULT_AXIS_STEP_DISTANCE is stolen from compositor-x11.c * The RDP specs says the lower bits of flags contains the "the number of rotation * units the mouse wheel was rotated". @@ -981,9 +983,11 @@ xf_mouseEvent(rdpInput *input, UINT16 flags, UINT16 x, UINT16 y) if (flags & PTR_FLAGS_WHEEL_NEGATIVE) axis = -axis; + weston_event.axis = WL_POINTER_AXIS_VERTICAL_SCROLL; + weston_event.value = axis; + notify_axis(&peerContext->item.seat, weston_compositor_get_time(), - WL_POINTER_AXIS_VERTICAL_SCROLL, - axis); + &weston_event); } FREERDP_CB_RETURN(TRUE); |