compositor: weston_surface_assign_output() to use bounding box
authorPekka Paalanen <ppaalanen@gmail.com>
Thu, 26 Jan 2012 09:34:16 +0000 (11:34 +0200)
committerPekka Paalanen <ppaalanen@gmail.com>
Fri, 27 Jan 2012 14:15:02 +0000 (16:15 +0200)
commit45f3e405c6e556f50eeeb319d2191b8a4aa61796
treee0d9435b1a75581a40176a05a9e6d3752f3ffa97
parent3bfcd4d907870e063a36bdb776f0d78a8469070a
compositor: weston_surface_assign_output() to use bounding box

Use the bounding box to compute an approximation of which output
contains most of the surface.

Move the region32 init outside the loop, and fini it, too.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
src/compositor.c