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 <ander.conselvan.de.oliveira@intel.com>
This commit is contained in:
Ander Conselvan de Oliveira 2011-10-26 16:48:45 +03:00 committed by Kristian Høgsberg
parent ac5098f11a
commit 9a38a0a191
1 changed files with 5 additions and 0 deletions

View File

@ -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);
}