diff options
author | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-03-09 16:50:20 -0500 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2022-03-17 21:52:59 +0300 |
commit | 440d0bc22d57b8b0b21a8acbf127243b8d08cfae (patch) | |
tree | b7988cd9caef571636f775a78c8e39f95b610d0a /sway/input/seatop_default.c | |
parent | sway/input/seat: take output name from specialized input device (diff) | |
download | sway-440d0bc22d57b8b0b21a8acbf127243b8d08cfae.tar.gz sway-440d0bc22d57b8b0b21a8acbf127243b8d08cfae.tar.zst sway-440d0bc22d57b8b0b21a8acbf127243b8d08cfae.zip |
sway/input: follow up wlroots input device events renaming
Diffstat (limited to 'sway/input/seatop_default.c')
-rw-r--r-- | sway/input/seatop_default.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/input/seatop_default.c b/sway/input/seatop_default.c index 969352bf..15d1ca8b 100644 --- a/sway/input/seatop_default.c +++ b/sway/input/seatop_default.c | |||
@@ -645,7 +645,7 @@ static void handle_tablet_tool_motion(struct sway_seat *seat, | |||
645 | * Functions used by handle_pointer_axis / | 645 | * Functions used by handle_pointer_axis / |
646 | *--------------------------------------*/ | 646 | *--------------------------------------*/ |
647 | 647 | ||
648 | static uint32_t wl_axis_to_button(struct wlr_event_pointer_axis *event) { | 648 | static uint32_t wl_axis_to_button(struct wlr_pointer_axis_event *event) { |
649 | switch (event->orientation) { | 649 | switch (event->orientation) { |
650 | case WLR_AXIS_ORIENTATION_VERTICAL: | 650 | case WLR_AXIS_ORIENTATION_VERTICAL: |
651 | return event->delta < 0 ? SWAY_SCROLL_UP : SWAY_SCROLL_DOWN; | 651 | return event->delta < 0 ? SWAY_SCROLL_UP : SWAY_SCROLL_DOWN; |
@@ -658,9 +658,9 @@ static uint32_t wl_axis_to_button(struct wlr_event_pointer_axis *event) { | |||
658 | } | 658 | } |
659 | 659 | ||
660 | static void handle_pointer_axis(struct sway_seat *seat, | 660 | static void handle_pointer_axis(struct sway_seat *seat, |
661 | struct wlr_event_pointer_axis *event) { | 661 | struct wlr_pointer_axis_event *event) { |
662 | struct sway_input_device *input_device = | 662 | struct sway_input_device *input_device = |
663 | event->device ? event->device->data : NULL; | 663 | event->pointer ? event->pointer->base.data : NULL; |
664 | struct input_config *ic = | 664 | struct input_config *ic = |
665 | input_device ? input_device_get_config(input_device) : NULL; | 665 | input_device ? input_device_get_config(input_device) : NULL; |
666 | struct sway_cursor *cursor = seat->cursor; | 666 | struct sway_cursor *cursor = seat->cursor; |