aboutsummaryrefslogtreecommitdiff
path: root/examples
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 /examples
parent9f4cf242d9f51922c1bb364d9b11a1ed83f518fb (diff)
pointer: use enum wl_pointer_button_state
Diffstat (limited to 'examples')
-rw-r--r--examples/pointer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pointer.c b/examples/pointer.c
index bb249b42..81529e88 100644
--- a/examples/pointer.c
+++ b/examples/pointer.c
@@ -144,7 +144,7 @@ static void handle_cursor_button(struct wl_listener *listener, void *data) {
struct wlr_pointer_button_event *event = data;
float (*color)[4];
- if (event->state == WLR_BUTTON_RELEASED) {
+ if (event->state == WL_POINTER_BUTTON_STATE_RELEASED) {
color = &sample->default_color;
memcpy(&sample->clear_color, color, sizeof(*color));
} else {