mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-04-04 14:20:46 +02:00
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> |
||
|---|---|---|
| .. | ||
| evdev-touchpad.c | ||
| evdev.c | ||
| evdev.h | ||
| filter.c | ||
| filter.h | ||
| libinput-private.h | ||
| libinput-util.c | ||
| libinput-util.h | ||
| libinput-version.h.in | ||
| libinput.c | ||
| libinput.h | ||
| libinput.pc.in | ||
| Makefile.am | ||
| udev-seat.c | ||
| udev-seat.h | ||