compositor: Always set output_mask in weston_surface_update_output_mask().
authorScott Moreau <oreaus@gmail.com>
Fri, 3 Aug 2012 23:11:51 +0000 (17:11 -0600)
committerKristian Høgsberg <krh@bitplanet.net>
Sat, 4 Aug 2012 00:11:24 +0000 (20:11 -0400)
commita5021521f11edaa5d83ed8a4003f917c1dfb2e1b
tree55af0f8f4fc06948eb37b904f6335fd4cbed0947
parent61f00f52fae6f602c2d855eca569e68393951f15
compositor: Always set output_mask in weston_surface_update_output_mask().

Commit 982387011 causes a bug where starting weston results in a black screen
(if no clients are immediately started). The problem is that the offending
commit causes the compositor to not damage if a surface has an empty output
mask, which is the case for the fade surface, which is created by the
compositor.  This patch updates the surface output_mask unconditionally,
and only skips sending out the events if there no client.
src/compositor.c