diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2016-05-24 14:37:54 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2016-05-30 16:10:12 +1000 |
commit | cf707baace3f87360ece667f25ba45acc87e9a18 (patch) | |
tree | ad7c1a17eadeae488084a36f5793526716274e6b /src/evdev-mt-touchpad-edge-scroll.c | |
parent | 83b0f3c4f3792bbba55f10901583b56f45ad81e0 (diff) |
tablet: up the reference count for the tool in the event
Make sure that the tool is valid while the event is valid, even if the device
gets destroyed before the event is destroyed.
This cannot actually be triggered right now, the event has a ref to the device
and the tools do not get removed until the device is destroyed. But for future
implementations (e.g. where the tool is otherwise automatically destroyed on
proximity out) we need to ensure the tool remains valid for the event
lifetime.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/evdev-mt-touchpad-edge-scroll.c')
0 files changed, 0 insertions, 0 deletions