compositor: damage pending subsurfaces when committing them

When a client changes the subsurfaces state, we need to damage
them so the result is visible. We do that by flagging the surfaces
when the state changes and causing damage when committing the
state. This prevents normal repaints from considering these changes
until a commit has happened, and allows the client to atomically
schedule several changes.

This fixes the subsurface_z_order test, which is now marked as expected
to succeed.

Signed-off-by: Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Micah Fedke <micah.fedke@collabora.co.uk>
This commit is contained in:
Emilio Pozuelo Monfort
2017-01-27 17:30:29 +01:00
committed by Pekka Paalanen
parent e7c6aa6af4
commit 4f3cad7828
3 changed files with 35 additions and 1 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ surface_commit_color(struct client *client, struct wl_surface *surface,
return buf;
}
FAIL_TEST(subsurface_z_order)
TEST(subsurface_z_order)
{
const char *test_name = get_test_name();
struct client *client;