diff --git a/src/backend/wayland/wl_pointer_focus.c b/src/backend/wayland/wl_pointer_focus.c index 67faebf..34a085e 100644 --- a/src/backend/wayland/wl_pointer_focus.c +++ b/src/backend/wayland/wl_pointer_focus.c @@ -268,7 +268,7 @@ void wl_pointer_warp_to(int x, int y) { if (wl_state.cursor) { - wlr_cursor_warp(wl_state.cursor, NULL, (double)x, (double)y); + wlr_cursor_warp_closest(wl_state.cursor, NULL, (double)x, (double)y); wl_state.pointer_x = (int)wl_state.cursor->x; wl_state.pointer_y = (int)wl_state.cursor->y; } else {