From 3996e54dfb5f4c9125cc747da320e4cc57a0296d Mon Sep 17 00:00:00 2001 From: jlo62 <122014753+jlo62@users.noreply.github.com> Date: Sun, 17 Sep 2023 20:29:11 +0200 Subject: [PATCH] Update cursor.c --- sway/input/cursor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 6c5dd8093..42d772967 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c @@ -408,7 +408,7 @@ static void handle_pointer_motion_relative( struct sway_cursor *cursor = wl_container_of(listener, cursor, motion); struct wlr_pointer_motion_event *e = data; - struct sway_input_device *sid = input_sway_device_from_wlr(e->pointer); + struct sway_input_device *sid = input_sway_device_from_wlr(e->cursor); struct input_config *ic = sid ? input_device_get_config(sid) : NULL; float sensitivity = (ic && ic->sensitivity != FLT_MIN) ? ic->sensitivity : 1.0f;