mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-08 23:00:33 +01:00
evdev: read dpi before evdev_configure_device
So we can use to set up accel during evdev_configure_device. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
0d2c25e123
commit
8302860451
1 changed files with 2 additions and 2 deletions
|
|
@ -2092,6 +2092,8 @@ evdev_device_create(struct libinput_seat *seat,
|
|||
device->scroll.wheel_click_angle =
|
||||
evdev_read_wheel_click_prop(device);
|
||||
device->model = evdev_read_model(device);
|
||||
device->dpi = evdev_read_dpi_prop(device);
|
||||
|
||||
/* at most 5 SYN_DROPPED log-messages per 30s */
|
||||
ratelimit_init(&device->syn_drop_limit, 30ULL * 1000, 5);
|
||||
|
||||
|
|
@ -2102,8 +2104,6 @@ evdev_device_create(struct libinput_seat *seat,
|
|||
if (evdev_configure_device(device) == -1)
|
||||
goto err;
|
||||
|
||||
device->dpi = evdev_read_dpi_prop(device);
|
||||
|
||||
if (device->seat_caps == 0) {
|
||||
unhandled_device = 1;
|
||||
goto err;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue