compositor: round off fractions
authorPekka Paalanen <ppaalanen@gmail.com>
Mon, 13 Feb 2012 08:34:04 +0000 (10:34 +0200)
committerPekka Paalanen <ppaalanen@gmail.com>
Mon, 13 Feb 2012 08:34:04 +0000 (10:34 +0200)
commitcc2f868b2e65c26acd1b86012c76f9ae72ca4595
tree16a599c9755e4270d021964c8b7f3e8575c7c389
parentfc6d91a5686d647669167f7282f4d01636826df4
compositor: round off fractions

Round off fractions from non-transformed surface position coordinates.

Transformed surface moved by a client may have non-integer position
coordinates. That is required to prevent drifting on continuous
resizing.

We can round the position to integers when the surface is not (anymore)
transformed.

This change may fix a rounding inconsistency in the opaque region setup,
where the rectangle is initialised from the coordinates without explicit
rounding operation.

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