No functional changes
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/path.c | 57 -
1 file changed, 32 insertions(+), 25 deletions(-)
diff --git a/src/path.c b/src/path.c
index f986afd..5900775 100644
--- a/src/path.c
+++
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
test/path.c | 71 ++-
test/udev.c | 78 -
2 files changed, 147 insertions(+), 2 deletions(-)
diff --git a/test/path.c
Prep work for changing seat names on devices. No functional changes.
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---
src/path.c | 30 ++
1 file changed, 22 insertions(+), 8 deletions(-)
diff --git a/src/path.c b/src/path.c
index 9d0632a..fef1d46 100644
---
libinput devices are assigned to a struct libinput_seat that is immutable.
The seat consists of physical seat (e.g. seat0, i.e. ID_SEAT) and a
logical seat (default, WL_SEAT if available).
The physical seat is used as filter whether a device is added at all,
the logical seat effectively
Using a udev_device instead of the various bits separately safes us
re-initializing udev contexts whenever we need to compare the device. And
having the actual udev device makes it a bit easier to ensure that we're not
re-initializing a different device as a current one.
Signed-off-by: Peter
Long-term plan to use more of udev_device here is to better protect us against
re-opening a different device that happens to have the same devnode.
This now also prints an error message for invalid devices, the log tests are
adjusted.
Signed-off-by: Peter Hutterer peter.hutte...@who-t.net
---