diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/pointer.c | 2 |
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 { |