mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-29 19:30:09 +01:00
tools: handle an empty quirks list in the libinput recording
Fixes: 548279abee ("tools: store virtual property in recordings")
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1243>
This commit is contained in:
parent
a2694738cb
commit
65e7cd5953
1 changed files with 1 additions and 1 deletions
|
|
@ -317,7 +317,7 @@ def setup_quirks(recording):
|
|||
overrides = None
|
||||
quirks = []
|
||||
for d in devices:
|
||||
qs = d.get("quirks", [])
|
||||
qs = d.get("quirks") or []
|
||||
if not any(q.startswith("AttrIsVirtual=") for q in qs):
|
||||
try:
|
||||
is_virtual = d["udev"]["virtual"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue