weston/xwayland
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
..
dnd.c input: Don't test keyboard/pointer/touch pointers 2015-07-31 15:16:09 -07:00
hash.c Move xwayland up one directory level 2013-12-04 10:20:02 -08:00
hash.h Move xwayland up one directory level 2013-12-04 10:20:02 -08:00
launcher.c Unified multiple definitions of container_of() macro. 2015-06-15 17:11:58 -07:00
selection.c Partially revert "xwayland: Always free reply from xcb_get_property_reply()" 2015-07-15 13:55:58 -07:00
window-manager.c input: Don't test keyboard/pointer/touch pointers 2015-07-31 15:16:09 -07:00
xwayland.h xwayland: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:19 -07:00