Public paste
libinput patch
By: Guest | Date: May 19 2021 17:45 | Format: None | Expires: never | Size: 1.42 KB | Hits: 387

  1.  src/evdev.c     | 4 ++++
  2.  src/udev-seat.c | 1 +
  3.  2 files changed, 5 insertions(+)
  4.  
  5. diff --git a/src/evdev.c b/src/evdev.c
  6. index d792e8aa..3dff9326 100644
  7. --- a/src/evdev.c
  8. +++ b/src/evdev.c
  9. @@ -2246,6 +2246,7 @@ evdev_device_create(struct libinput_seat *seat,
  10.  
  11.         evdev_drain_fd(fd);
  12.  
  13. +       log_info(libinput, "[libinput] libevdev_new_from_fd(%s)\n", devnode);
  14.         rc = libevdev_new_from_fd(fd, &device->evdev);
  15.         if (rc != 0)
  16.                 goto err;
  17. @@ -2284,14 +2285,17 @@ evdev_device_create(struct libinput_seat *seat,
  18.         evdev_pre_configure_model_quirks(device);
  19.  
  20.         device->dispatch = evdev_configure_device(device);
  21. +       log_info(libinput, "[libinput] evdev_configure_device\n");
  22.         if (device->dispatch == NULL || device->seat_caps == 0)
  23.                 goto err;
  24.  
  25.         device->source =
  26.                 libinput_add_fd(libinput, fd, evdev_device_dispatch, device);
  27. +       log_info(libinput, "[libinput] libinput_add_fd\n");
  28.         if (!device->source)
  29.                 goto err;
  30.  
  31. +       log_info(libinput, "[libinput] evdev_set_device_group\n");
  32.         if (!evdev_set_device_group(device, udev_device))
  33.                 goto err;
  34.  
  35. diff --git a/src/udev-seat.c b/src/udev-seat.c
  36. index 20a3f027..f204aa5d 100644
  37. --- a/src/udev-seat.c
  38. +++ b/src/udev-seat.c
  39. @@ -119,6 +119,7 @@ device_added(struct udev_device *udev_device,
  40.                         return -1;
  41.         }
  42.  
  43. +       log_info(&input->base, "[libinput] evdev_device_create\n");
  44.         device = evdev_device_create(&seat->base, udev_device);
  45.         libinput_seat_unref(&seat->base);
  46.  
  47.