mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 04:03:17 +00:00
Update cursor.c
This commit is contained in:
parent
a2c9e8f7e1
commit
3996e54dfb
|
@ -408,7 +408,7 @@ static void handle_pointer_motion_relative(
|
||||||
struct sway_cursor *cursor = wl_container_of(listener, cursor, motion);
|
struct sway_cursor *cursor = wl_container_of(listener, cursor, motion);
|
||||||
struct wlr_pointer_motion_event *e = data;
|
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;
|
struct input_config *ic = sid ? input_device_get_config(sid) : NULL;
|
||||||
float sensitivity = (ic && ic->sensitivity != FLT_MIN) ? ic->sensitivity : 1.0f;
|
float sensitivity = (ic && ic->sensitivity != FLT_MIN) ? ic->sensitivity : 1.0f;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue