]> git.mdlowis.com Git - proto/labwc.git/commit
seat: improve debug logging when configuring input devices
authorJohn Lindgren <john@jlindgren.net>
Wed, 27 Aug 2025 17:04:52 +0000 (13:04 -0400)
committerJohn Lindgren <john@jlindgren.net>
Wed, 27 Aug 2025 17:07:01 +0000 (13:07 -0400)
commitc8943ca242d44f3118bee70b38114c0b50561708
treea33f5f453609f238bbdd63617b921de1d5a76773
parent80b28f16c7cf4507e020ed86a28cddda00e5393b
seat: improve debug logging when configuring input devices

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).
include/config/libinput.h
src/config/libinput.c
src/seat.c