aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2024-02-28 10:26:38 +0100
committerSimon Zeni <simon@bl4ckb0ne.ca>2024-02-28 16:39:18 +0000
commit812451cd8fd858cb2aa0630532266f229d934bf2 (patch)
treec3f6ae7bfd9d5f5d06b74923975f2bfddb66c23f /include/wlr
parent9f4cf242d9f51922c1bb364d9b11a1ed83f518fb (diff)
pointer: use enum wl_pointer_button_state
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_pointer.h2
-rw-r--r--include/wlr/types/wlr_seat.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/include/wlr/types/wlr_pointer.h b/include/wlr/types/wlr_pointer.h
index 240b69d6..931bc046 100644
--- a/include/wlr/types/wlr_pointer.h
+++ b/include/wlr/types/wlr_pointer.h
@@ -63,7 +63,7 @@ struct wlr_pointer_button_event {
struct wlr_pointer *pointer;
uint32_t time_msec;
uint32_t button;
- enum wlr_button_state state;
+ enum wl_pointer_button_state state;
};
enum wlr_axis_orientation {
diff --git a/include/wlr/types/wlr_seat.h b/include/wlr/types/wlr_seat.h
index b6d80f15..0c1f0689 100644
--- a/include/wlr/types/wlr_seat.h
+++ b/include/wlr/types/wlr_seat.h
@@ -98,7 +98,7 @@ struct wlr_pointer_grab_interface {
void (*motion)(struct wlr_seat_pointer_grab *grab, uint32_t time_msec,
double sx, double sy);
uint32_t (*button)(struct wlr_seat_pointer_grab *grab, uint32_t time_msec,
- uint32_t button, enum wlr_button_state state);
+ uint32_t button, enum wl_pointer_button_state state);
void (*axis)(struct wlr_seat_pointer_grab *grab, uint32_t time_msec,
enum wlr_axis_orientation orientation, double value,
int32_t value_discrete, enum wl_pointer_axis_source source,
@@ -399,7 +399,7 @@ void wlr_seat_pointer_send_motion(struct wlr_seat *wlr_seat, uint32_t time_msec,
* instead.
*/
uint32_t wlr_seat_pointer_send_button(struct wlr_seat *wlr_seat,
- uint32_t time_msec, uint32_t button, enum wlr_button_state state);
+ uint32_t time_msec, uint32_t button, enum wl_pointer_button_state state);
/**
* Send an axis event to the surface with pointer focus. This function does not
@@ -453,7 +453,7 @@ void wlr_seat_pointer_notify_motion(struct wlr_seat *wlr_seat,
* pointer.
*/
uint32_t wlr_seat_pointer_notify_button(struct wlr_seat *wlr_seat,
- uint32_t time_msec, uint32_t button, enum wlr_button_state state);
+ uint32_t time_msec, uint32_t button, enum wl_pointer_button_state state);
/**
* Notify the seat of an axis event. Defers to any grab of the pointer.