mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 06:50:05 +01:00
tools: add missing AttrIsVirtual handling for listing quirks
If a device has AttrIsVirtual set in the quirks we'd abort() when trying
to list those quirks.
Fixes: efb4b6a3be ("evdev: detect virtual devices")
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1281>
This commit is contained in:
parent
b8651d798c
commit
96d1954dce
1 changed files with 1 additions and 0 deletions
|
|
@ -958,6 +958,7 @@ tools_list_device_quirks(struct quirks_context *ctx,
|
|||
break;
|
||||
case QUIRK_ATTR_USE_VELOCITY_AVERAGING:
|
||||
case QUIRK_ATTR_TABLET_SMOOTHING:
|
||||
case QUIRK_ATTR_IS_VIRTUAL:
|
||||
quirks_get_bool(quirks, q, &b);
|
||||
snprintf(buf, sizeof(buf), "%s=%d", name, b);
|
||||
callback(userdata, buf);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue