From 812451cd8fd858cb2aa0630532266f229d934bf2 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 28 Feb 2024 10:26:38 +0100 Subject: pointer: use enum wl_pointer_button_state --- examples/pointer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') 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 { -- cgit v1.2.3