input: Add weston_pointer_clamp function to ensure pointer visible
authorRob Bradford <rob@linux.intel.com>
Tue, 25 Jun 2013 17:56:41 +0000 (18:56 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 25 Jun 2013 20:28:04 +0000 (16:28 -0400)
commit806d8c0b781e9702a93b90c366f7bebbd77a4860
tree6457f178c12cd546ed35ea354368cc2d3f867275
parent1d697d7adfa9822dbdd34e93f5f09a300e093a68
input: Add weston_pointer_clamp function to ensure pointer visible

This refactors the code out from clip_pointer_motion into a function of
its own which can then be used elsewhere to clamp the pointer
coordinates to the range of the outputs.

This change also makes the caller of clip_pointer_motion use this new
function.
src/compositor.h
src/input.c