libweston: Support NULL weston_pointer in init_pointer_constraint
authorAlexandros Frantzis <alexandros.frantzis@collabora.com>
Thu, 8 Feb 2018 13:37:52 +0000 (15:37 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 14 Feb 2018 13:14:16 +0000 (15:14 +0200)
commit0f14ae95b020e8e43da9b5593d1cba8e48f56a55
treea0e4d67ae166cee46bc3bb0bd7bab354a8dec364
parentc6e2942fab4a0364108ef7073381205590e1a504
libweston: Support NULL weston_pointer in init_pointer_constraint

Fix init_pointer_constraint so that it creates a valid, but inert,
resource if a NULL weston_pointer value is passed in. In that case no
constraint object is associated with the resource, but this is not an
issue since affected code can already handle NULL constraint objects.

Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
libweston/input.c