weston/desktop-shell
Derek Foreman 1281a36e3b input: Don't test keyboard/pointer/touch pointers
Keyboards and pointers aren't freed when devices are removed, so we should
really be testing keyboard_device_count and pointer_device_count in most
cases, not the actual pointers. Otherwise we end up with different
behaviour after removing a device than we had before it was inserted.

This commit renames the touch/keyboard/pointer pointers and adds helper
functions to get them that hide this complexity and return NULL when
*_device_count is 0.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Jonas Ådahl <jadahl@gmail.com>
2015-07-31 15:16:09 -07:00
..
exposay.c input: Don't test keyboard/pointer/touch pointers 2015-07-31 15:16:09 -07:00
input-panel.c input: Don't test keyboard/pointer/touch pointers 2015-07-31 15:16:09 -07:00
shell.c input: Don't test keyboard/pointer/touch pointers 2015-07-31 15:16:09 -07:00
shell.h input: Pass the appropriate pointer type to bindings instead of a seat 2015-07-16 19:03:43 -07:00