From 9a38a0a191bdf50cd8c45b19fce402f7e25188d0 Mon Sep 17 00:00:00 2001 From: Ander Conselvan de Oliveira Date: Wed, 26 Oct 2011 16:48:45 +0300 Subject: [PATCH] compositor: page flip away from a client buffer if it's destroyed If the current or pending scanout buffer is destroyed, the client frame will remain being displayed until something else causes a repaint to be scheduled. Signed-off-by: Ander Conselvan de Oliveira --- compositor/compositor.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compositor/compositor.c b/compositor/compositor.c index 772b0bbe..e4b8d922 100644 --- a/compositor/compositor.c +++ b/compositor/compositor.c @@ -220,6 +220,9 @@ output_handle_scanout_buffer_destroy(struct wl_listener *listener, scanout_buffer_destroy_listener); output->scanout_buffer = NULL; + + if (!output->pending_scanout_buffer) + wlsc_compositor_schedule_repaint(output->compositor); } static void @@ -232,6 +235,8 @@ output_handle_pending_scanout_buffer_destroy(struct wl_listener *listener, pending_scanout_buffer_destroy_listener); output->pending_scanout_buffer = NULL; + + wlsc_compositor_schedule_repaint(output->compositor); }