input: Support non-rectangular pointer confine regions
authorJonas Ådahl <jadahl@gmail.com>
Thu, 30 Apr 2015 09:56:37 +0000 (17:56 +0800)
committerJonas Ådahl <jadahl@gmail.com>
Tue, 26 Jul 2016 09:21:15 +0000 (17:21 +0800)
commitd0be2bb5f2cb8dcde5989b15d96cc0e97b8ac73d
treec7f8b6d18a743a842e058f4755fa533fc49fe846
parentfdeb2bb92863a9e902697b22c241f20066bf87d7
input: Support non-rectangular pointer confine regions

This patch adds support for when the resulting pointer confinement region
is not a rectangle.

Support for this is implemented by converting the rectangles of the
region into the regions outer border. Pointer motions are then clamped
to these borders in order to not escape the confinement region.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
libweston/input.c