aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-11-05 07:29:02 -0500
committerGitHub <noreply@github.com>2017-11-05 07:29:02 -0500
commit74a45ee776ec05b5dbe7bae5be456ba08a850d7b (patch)
treef3642dee8720420794712edf3992cb5628eab185
parent80caaf8fcc184fbf5839c67cb32e66e8dcd0ab7b (diff)
parent1cee782fec090a19a390aec96e88475303dacafc (diff)
Merge pull request #388 from emersion/fix-wayland-pointer-axis
Fix pointer axis delta in Wayland backend
-rw-r--r--backend/wayland/wl_seat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/wayland/wl_seat.c b/backend/wayland/wl_seat.c
index deed215e..a2da8df5 100644
--- a/backend/wayland/wl_seat.c
+++ b/backend/wayland/wl_seat.c
@@ -90,7 +90,7 @@ static void pointer_handle_axis(void *data, struct wl_pointer *wl_pointer,
struct wlr_event_pointer_axis wlr_event;
wlr_event.device = dev;
- wlr_event.delta = value;
+ wlr_event.delta = wl_fixed_to_double(value);
wlr_event.orientation = axis;
wlr_event.time_msec = time;
wlr_event.source = wlr_wl_pointer->axis_source;