diff options
author | Simon Ser <contact@emersion.fr> | 2024-02-28 17:49:58 +0100 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2024-02-28 14:28:11 -0500 |
commit | fca8474e9bd64bff8df16fdaf409d5f575ba9501 (patch) | |
tree | f310c4062fa1bcbd49fc9397a5386953050f1a61 /sway/input/seat.c | |
parent | text_input: don't destroy scene_node twice (diff) | |
download | sway-fca8474e9bd64bff8df16fdaf409d5f575ba9501.tar.gz sway-fca8474e9bd64bff8df16fdaf409d5f575ba9501.tar.zst sway-fca8474e9bd64bff8df16fdaf409d5f575ba9501.zip |
Convert to new pointer enums
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4575
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r-- | sway/input/seat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index 9dd078c6..7ae29828 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c | |||
@@ -1520,7 +1520,7 @@ struct seat_config *seat_get_config_by_name(const char *name) { | |||
1520 | } | 1520 | } |
1521 | 1521 | ||
1522 | void seat_pointer_notify_button(struct sway_seat *seat, uint32_t time_msec, | 1522 | void seat_pointer_notify_button(struct sway_seat *seat, uint32_t time_msec, |
1523 | uint32_t button, enum wlr_button_state state) { | 1523 | uint32_t button, enum wl_pointer_button_state state) { |
1524 | seat->last_button_serial = wlr_seat_pointer_notify_button(seat->wlr_seat, | 1524 | seat->last_button_serial = wlr_seat_pointer_notify_button(seat->wlr_seat, |
1525 | time_msec, button, state); | 1525 | time_msec, button, state); |
1526 | } | 1526 | } |
@@ -1557,7 +1557,7 @@ void seatop_unref(struct sway_seat *seat, struct sway_container *con) { | |||
1557 | 1557 | ||
1558 | void seatop_button(struct sway_seat *seat, uint32_t time_msec, | 1558 | void seatop_button(struct sway_seat *seat, uint32_t time_msec, |
1559 | struct wlr_input_device *device, uint32_t button, | 1559 | struct wlr_input_device *device, uint32_t button, |
1560 | enum wlr_button_state state) { | 1560 | enum wl_pointer_button_state state) { |
1561 | if (seat->seatop_impl->button) { | 1561 | if (seat->seatop_impl->button) { |
1562 | seat->seatop_impl->button(seat, time_msec, device, button, state); | 1562 | seat->seatop_impl->button(seat, time_msec, device, button, state); |
1563 | } | 1563 | } |