From 7da43ff8b05aa5280e1b94190a8ce157a8131af4 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 10 Aug 2017 08:26:16 -0400 Subject: Implement wlr_surface_flush_damage --- examples/compositor/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'examples') diff --git a/examples/compositor/main.c b/examples/compositor/main.c index 7ac549e5..fd592600 100644 --- a/examples/compositor/main.c +++ b/examples/compositor/main.c @@ -42,6 +42,7 @@ void handle_output_frame(struct output_state *output, struct timespec *ts) { float matrix[16]; wl_list_for_each(_res, &sample->compositor.surfaces, link) { struct wlr_surface *surface = wl_resource_get_user_data(_res); + wlr_surface_flush_damage(surface); if (surface->texture->valid) { wlr_texture_get_matrix(surface->texture, &matrix, &wlr_output->transform_matrix, 200, 200); -- cgit v1.2.3