mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-07 03:48:06 +02:00
test: fix a comment regarding uinput's resolution assignment
This isn't true anymore with kernel 4.5 and libevdev 1.5.0 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
1e0736daf3
commit
86c2e56132
1 changed files with 8 additions and 4 deletions
|
|
@ -2393,10 +2393,14 @@ litest_create_uinput(const char *name,
|
||||||
rc = libevdev_new_from_fd(fd, &dev);
|
rc = libevdev_new_from_fd(fd, &dev);
|
||||||
litest_assert_int_eq(rc, 0);
|
litest_assert_int_eq(rc, 0);
|
||||||
|
|
||||||
/* uinput does not yet support setting the resolution, so we set it
|
/* uinput before kernel 4.5 + libevdev 1.5.0 does not support
|
||||||
* afterwards. This is of course racy as hell but the way we
|
* setting the resolution, so we set it afterwards. This is of
|
||||||
* _generally_ use this function by the time libinput uses the
|
* course racy as hell but the way we _generally_ use this function
|
||||||
* device, we're finished here */
|
* by the time libinput uses the device, we're finished here.
|
||||||
|
*
|
||||||
|
* If you have kernel 4.5 and libevdev 1.5.0 or later, this code
|
||||||
|
* just keeps the room warm.
|
||||||
|
*/
|
||||||
abs = abs_info;
|
abs = abs_info;
|
||||||
while (abs && abs->value != -1) {
|
while (abs && abs->value != -1) {
|
||||||
if (abs->resolution != 0) {
|
if (abs->resolution != 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue