From 22d0dd8bde62592ff34d354e059cdc6e09879cb4 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 21 Dec 2023 19:54:59 +0100 Subject: [PATCH] Check wlr_pointer_constraint_v1_state.cursor_hint.enabled Update for a wlroots breaking change which resets the committed mask. References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4478 --- sway/input/cursor.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 36aab93e..6b6faf64 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c @@ -1348,8 +1348,7 @@ const char *get_mouse_button_name(uint32_t button) { static void warp_to_constraint_cursor_hint(struct sway_cursor *cursor) { struct wlr_pointer_constraint_v1 *constraint = cursor->active_constraint; - if (constraint->current.committed & - WLR_POINTER_CONSTRAINT_V1_STATE_CURSOR_HINT) { + if (constraint->current.cursor_hint.enabled) { double sx = constraint->current.cursor_hint.x; double sy = constraint->current.cursor_hint.y;