diff options
author | Simon Ser <contact@emersion.fr> | 2024-02-28 10:26:38 +0100 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2024-02-28 16:39:18 +0000 |
commit | 812451cd8fd858cb2aa0630532266f229d934bf2 (patch) | |
tree | c3f6ae7bfd9d5f5d06b74923975f2bfddb66c23f /backend/libinput | |
parent | 9f4cf242d9f51922c1bb364d9b11a1ed83f518fb (diff) |
pointer: use enum wl_pointer_button_state
Diffstat (limited to 'backend/libinput')
-rw-r--r-- | backend/libinput/pointer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/libinput/pointer.c b/backend/libinput/pointer.c index 01bfc190..57a2f4a3 100644 --- a/backend/libinput/pointer.c +++ b/backend/libinput/pointer.c @@ -69,13 +69,13 @@ void handle_pointer_button(struct libinput_event *event, uint32_t seat_count = libinput_event_pointer_get_seat_button_count(pevent); switch (libinput_event_pointer_get_button_state(pevent)) { case LIBINPUT_BUTTON_STATE_PRESSED: - wlr_event.state = WLR_BUTTON_PRESSED; + wlr_event.state = WL_POINTER_BUTTON_STATE_PRESSED; if (seat_count != 1) { return; } break; case LIBINPUT_BUTTON_STATE_RELEASED: - wlr_event.state = WLR_BUTTON_RELEASED; + wlr_event.state = WL_POINTER_BUTTON_STATE_RELEASED; if (seat_count != 0) { return; } |