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 --- tinywl/tinywl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tinywl') diff --git a/tinywl/tinywl.c b/tinywl/tinywl.c index ec8f3c03..bfdee90f 100644 --- a/tinywl/tinywl.c +++ b/tinywl/tinywl.c @@ -525,7 +525,7 @@ static void server_cursor_button(struct wl_listener *listener, void *data) { struct wlr_surface *surface = NULL; struct tinywl_toplevel *toplevel = desktop_toplevel_at(server, server->cursor->x, server->cursor->y, &surface, &sx, &sy); - if (event->state == WLR_BUTTON_RELEASED) { + if (event->state == WL_POINTER_BUTTON_STATE_RELEASED) { /* If you released any buttons, we exit interactive move/resize mode. */ reset_cursor_mode(server); } else { -- cgit v1.2.3