compositor-drm: Check surface's outputs when assigning overlays
authorAnder Conselvan de Oliveira <conselvan2@gmail.com>
Tue, 26 Jun 2012 14:09:12 +0000 (17:09 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 26 Jun 2012 14:21:49 +0000 (10:21 -0400)
commitd450b1901fcec3bb38b11800c2d435f38354344b
tree1a5de7004afa6d8f101880625b26942f39f0aee9
parent57e0ce1d2afd1c5c335f43f38a348ddbcbefdcf1
compositor-drm: Check surface's outputs when assigning overlays

Check if the output passed to drm_output_prepare_overlay_surface() does
actually contain the surface and fail if it doesn't. Also fail if a
surface spans multiple outputs since clearing the damage will cause the
portion that is not in an overlay to not be updated at all.
src/compositor-drm.c