mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
pointer: drop enum wlr_axis_source
Instead, use enum wl_pointer_axis_source from the Wayland protocol.
This commit is contained in:
parent
c45e97f3a5
commit
9f4cf242d9
10 changed files with 22 additions and 29 deletions
|
|
@ -45,7 +45,7 @@ static void send_axis_event(struct wlr_x11_output *output, int32_t delta,
|
|||
struct wlr_pointer_axis_event ev = {
|
||||
.pointer = &output->pointer,
|
||||
.time_msec = time,
|
||||
.source = WLR_AXIS_SOURCE_WHEEL,
|
||||
.source = WL_POINTER_AXIS_SOURCE_WHEEL,
|
||||
.orientation = WLR_AXIS_ORIENTATION_VERTICAL,
|
||||
// Most mice use a 15 degree angle per scroll click
|
||||
.delta = delta * 15,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue