]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[x11] Throttle plymouth to X server x11-renderer
authorRay Strode <rstrode@redhat.com>
Sun, 4 Oct 2009 01:44:26 +0000 (21:44 -0400)
committerRay Strode <rstrode@redhat.com>
Sun, 4 Oct 2009 14:45:38 +0000 (10:45 -0400)
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.

src/plugins/renderers/x11/plugin.c

index d59ca487c8612755daf2f09a12b4de5c12dfdf23..a2b61c0b22366bbd0be18cb986d322d1839682dd 100644 (file)
@@ -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