libinput/src
Jasper St. Pierre 385bfdb762 libinput: Fix the close_restricted interface callback
libinput is supposed to take a close callback in its interface
to allow you to call out to a privileged API to close FDs. But
the FD that libinput passes you is bogus, because
libinput_remove_source closes the FD on which it's passed. This
is really bad, as the libinput_source really doesn't own the FD
which it's passed, so it shouldn't be trying to close() it.

Only one out of the four users of libinput_remove_source actually
wants their FD closed, so move the close() call there.

Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-03-04 15:21:38 +10:00
..
evdev-touchpad.c libinput: Fix the close_restricted interface callback 2014-03-04 15:21:38 +10:00
evdev.c Split up the touch event into the different touch types 2014-02-26 19:32:33 +01:00
evdev.h Add seat wide slot to touch events 2014-02-26 19:32:33 +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 Split up the touch event into the different touch types 2014-02-26 19:32:33 +01:00
libinput-util.c Add a customizable log handler 2014-02-19 08:35:25 +10:00
libinput-util.h util: add min/max macros 2014-02-17 14:35:06 +10: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 libinput: Fix the close_restricted interface callback 2014-03-04 15:21:38 +10:00
libinput.h Split up the touch event into the different touch types 2014-02-26 19:32:33 +01:00
libinput.pc.in Add libudev and -lm to Requires.private 2013-12-21 12:10:19 +01:00
Makefile.am Makefile.am: Add private header to sources list 2014-02-26 19:32:33 +01:00
path.c path: Silence -Wmaybe-uninitialized compiler warning 2014-02-26 19:32:33 +01:00
path.h path: modify backend to allow for more than one device 2014-02-10 11:23:35 +10:00
udev-seat.c Make it possible to have persistent libinput_seat instances 2014-02-10 22:28:46 +01:00
udev-seat.h udev: Drop unused seat_name in struct udev_seat 2014-01-16 20:42:30 +01:00