input: Support non-rectangular pointer confine regions

Graphics / Wayland / Weston - Jonas Ã…dahl [gmail.com] - 26 July 2016 04:21 UTC

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.

d0be2bb input: Support non-rectangular pointer confine regions
libweston/input.c | 644 ++++++++++++++++++++++++++++++++++++++++++++++++++---
1 file changed, 615 insertions(+), 29 deletions(-)

Upstream: cgit.freedesktop.org


  • Share