Update cursor.c

This commit is contained in:
jlo62 2023-09-17 20:32:36 +02:00 committed by GitHub
parent 23ad8be535
commit bda7f681e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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->base);
struct sway_input_device *sid = input_sway_device_from_wlr(&e->pointer->base);
struct input_config *ic = sid ? input_device_get_config(sid) : NULL;
float sensitivity = (ic && ic->sensitivity != FLT_MIN) ? ic->sensitivity : 1.0f;