summaryrefslogtreecommitdiffstats
path: root/server/display-channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'server/display-channel.c')
-rw-r--r--server/display-channel.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/server/display-channel.c b/server/display-channel.c
index 37ba5c31..0f801d31 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -838,3 +838,14 @@ int display_channel_wait_for_migrate_data(DisplayChannel *display)
}
return FALSE;
}
+
+void display_channel_flush_all_surfaces(DisplayChannel *display)
+{
+ int x;
+
+ for (x = 0; x < NUM_SURFACES; ++x) {
+ if (display->surfaces[x].context.canvas) {
+ display_channel_current_flush(display, x);
+ }
+ }
+}