pointer: use enum wl_pointer_button_state

This commit is contained in:
Simon Ser 2024-02-28 10:26:38 +01:00 committed by Simon Zeni
parent 9f4cf242d9
commit 812451cd8f
8 changed files with 21 additions and 21 deletions

View file

@ -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 {