libinput/src
Peter Hutterer 6fcaf7699c udev: Refcount the seat for each device
Use the seat's internal refcounting to up the reference each time we have a
device using it. This fixes the issue with seats being created but never
actually removed by anything.

udev_seat_get_named() will now return a seat with refcount 1 for a newly
created seat, or just up the refcount for the seat if it already exists.

This requires that the ADDED_SEAT and REMOVED_SEAT events up the refcount of
the seat as well: a device may be removed before the event is processed,
without the refcount the seat would be destroyed (if it's the last device on
the seat).

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-01-10 11:08:21 +10:00
..
evdev-touchpad.c Fix typo in comment 2013-12-21 12:10:38 +01:00
evdev.c evdev: Drop joystick rejection heurstics 2013-12-21 12:54:27 +01:00
evdev.h evdev: Remove EVDEV_TOUCH and with it evdev_device->caps 2013-12-21 12:49:17 +01:00
filter.c Port evdev code to be used as a shared library 2013-11-12 22:37:20 +01:00
filter.h Port evdev code to be used as a shared library 2013-11-12 22:37:20 +01:00
libinput-private.h Abstract the backend interface away 2014-01-09 11:13:53 +10:00
libinput-util.c util: Add logging utilities 2013-11-23 12:55:44 +01:00
libinput-util.h util: add ARRAY_FOR_EACH helper 2013-12-21 12:09:55 +01:00
libinput-version.h.in Port evdev code to be used as a shared library 2013-11-12 22:37:20 +01:00
libinput.c udev: Refcount the seat for each device 2014-01-10 11:08:21 +10:00
libinput.h Destroy associated reference counted objects when destroying context 2014-01-03 22:38:42 +01:00
libinput.pc.in Add libudev and -lm to Requires.private 2013-12-21 12:10:19 +01:00
Makefile.am Add -lm to library 2013-12-21 12:10:09 +01:00
udev-seat.c udev: Refcount the seat for each device 2014-01-10 11:08:21 +10:00
udev-seat.h Abstract the backend interface away 2014-01-09 11:13:53 +10:00