aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/cursor.c
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2023-12-21 19:54:59 +0100
committerLibravatar Simon Ser <contact@emersion.fr>2023-12-25 11:57:30 +0100
commit22d0dd8bde62592ff34d354e059cdc6e09879cb4 (patch)
tree335848614c37fc13c0235beaaa844b35f379fe55 /sway/input/cursor.c
parentoutput: Destroy when output layout is destroyed (diff)
downloadsway-22d0dd8bde62592ff34d354e059cdc6e09879cb4.tar.gz
sway-22d0dd8bde62592ff34d354e059cdc6e09879cb4.tar.zst
sway-22d0dd8bde62592ff34d354e059cdc6e09879cb4.zip
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
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r--sway/input/cursor.c3
1 files changed, 1 insertions, 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) {
1348static void warp_to_constraint_cursor_hint(struct sway_cursor *cursor) { 1348static void warp_to_constraint_cursor_hint(struct sway_cursor *cursor) {
1349 struct wlr_pointer_constraint_v1 *constraint = cursor->active_constraint; 1349 struct wlr_pointer_constraint_v1 *constraint = cursor->active_constraint;
1350 1350
1351 if (constraint->current.committed & 1351 if (constraint->current.cursor_hint.enabled) {
1352 WLR_POINTER_CONSTRAINT_V1_STATE_CURSOR_HINT) {
1353 double sx = constraint->current.cursor_hint.x; 1352 double sx = constraint->current.cursor_hint.x;
1354 double sy = constraint->current.cursor_hint.y; 1353 double sy = constraint->current.cursor_hint.y;
1355 1354