diff options
author | Andri Yngvason <andri@yngvason.is> | 2020-01-03 22:06:32 +0000 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-01-03 15:13:07 -0700 |
commit | 51f8c22f4d72f9e18657baccfff3db544c1c0660 (patch) | |
tree | 140e50da273321002669655c45b7d7d10b726a23 | |
parent | 5bbb44482b4127f022ece500060a1d1d6240407f (diff) |
virtual-pointer: Actually use the value passed to axis_discrete
It turns out that scrolling doesn't work unless this value is set somewhere.
-rw-r--r-- | types/wlr_virtual_pointer_v1.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/types/wlr_virtual_pointer_v1.c b/types/wlr_virtual_pointer_v1.c index 91318735..8483ae9b 100644 --- a/types/wlr_virtual_pointer_v1.c +++ b/types/wlr_virtual_pointer_v1.c @@ -195,6 +195,7 @@ static void virtual_pointer_axis_discrete(struct wl_client *client, pointer->axis_event[pointer->axis].device = wlr_dev; pointer->axis_event[pointer->axis].time_msec = time; pointer->axis_event[pointer->axis].orientation = axis; + pointer->axis_event[pointer->axis].delta = wl_fixed_to_double(value); pointer->axis_event[pointer->axis].delta_discrete = discrete; } |