seat: improve debug logging when configuring input devices
Some checks failed
labwc.github.io / notify (push) Has been cancelled

I needed to debug an input configuration issue and found the debug
output not-super-helpful, so I made some improvements:

- Print the name and "sysname" (e.g. event11) of the device being
  configured. Note that the name alone isn't enough since there can
  be multiple identically-named devices.

- Print the config category matched for each device.

- Print the config values (if any) being applied. For enums, only the
  numeric value is printed since I'm lazy.

- Don't print "pointer acceleration configured" if neither a pointer
  speed nor acceleration profile is configured (it's confusing).
This commit is contained in:
John Lindgren 2025-08-27 13:04:52 -04:00
parent 80b28f16c7
commit c8943ca242
3 changed files with 59 additions and 13 deletions

View file

@ -38,6 +38,7 @@ struct libinput_category {
};
enum lab_libinput_device_type get_device_type(const char *s);
const char *libinput_device_type_name(enum lab_libinput_device_type type);
struct libinput_category *libinput_category_create(void);
struct libinput_category *libinput_category_get_default(void);