mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-07 18:10:15 +01:00
tools: size without decimals is good enough
Sub-mm precision isn't needed for libinput-list-devices' size field. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
25f9c1381b
commit
5515ecafec
1 changed files with 1 additions and 1 deletions
|
|
@ -290,7 +290,7 @@ print_device_notify(struct libinput_event *ev)
|
|||
libinput_seat_get_logical_name(seat));
|
||||
|
||||
if (libinput_device_get_size(dev, &w, &h) == 0)
|
||||
printf("Size: %.2fx%.2fmm\n", w, h);
|
||||
printf("Size: %.fx%.fmm\n", w, h);
|
||||
printf("Capabilities: ");
|
||||
if (libinput_device_has_capability(dev,
|
||||
LIBINPUT_DEVICE_CAP_KEYBOARD))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue