summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2009-10-03 21:44:26 -0400
committerRay Strode <rstrode@redhat.com>2009-10-04 10:45:38 -0400
commit08466deaf8203ddff508d492056d2e9f705724e9 (patch)
treef7f0a85f326e2dcf4448912142481099f161dfd0
parent9fba779c394cdc37773c1a7cbf213f6507fae1d2 (diff)
[x11] Throttle plymouth to X serverx11-renderer
Some drivers completely choke with the amount of data plymouth is sending over the wire. This makes sure that plymouth doesn't keep assaulting the X server when it's already overworked by asking the server to return back a pixel before continuing.
-rw-r--r--src/plugins/renderers/x11/plugin.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/renderers/x11/plugin.c b/src/plugins/renderers/x11/plugin.c
index d59ca487..a2b61c0b 100644
--- a/src/plugins/renderers/x11/plugin.c
+++ b/src/plugins/renderers/x11/plugin.c
@@ -364,6 +364,12 @@ flush_head (ply_renderer_backend_t *backend,
ply_region_clear (updated_region);
cairo_destroy (cr);
+
+ /* Force read-back to make sure plymouth isn't saturating the
+ * X server with requests
+ */
+ g_object_unref (gdk_drawable_get_image (GDK_DRAWABLE (head->pixmap),
+ 0, 0, 1, 1));
}
static void