diff options
author | Simon Ser <contact@emersion.fr> | 2024-02-28 10:26:38 +0100 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2024-02-28 16:39:18 +0000 |
commit | 812451cd8fd858cb2aa0630532266f229d934bf2 (patch) | |
tree | c3f6ae7bfd9d5f5d06b74923975f2bfddb66c23f /tinywl/tinywl.c | |
parent | 9f4cf242d9f51922c1bb364d9b11a1ed83f518fb (diff) |
pointer: use enum wl_pointer_button_state
Diffstat (limited to 'tinywl/tinywl.c')
-rw-r--r-- | tinywl/tinywl.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |