[byzanz] Use a workaround for a Cairo/X bug



commit 6bb22b00677881b162b70572e9183010c2ad2bc1
Author: Benjamin Otte <otte gnome org>
Date:   Wed Aug 26 15:51:50 2009 +0200

    Use a workaround for a Cairo/X bug
    
    It seems there's a problem with XCopyArea from the root window. With
    this small change, Render is used by Cairo instead

 src/byzanzrecorder.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/byzanzrecorder.c b/src/byzanzrecorder.c
index 4713084..5db96fd 100644
--- a/src/byzanzrecorder.c
+++ b/src/byzanzrecorder.c
@@ -103,7 +103,7 @@ byzanz_recorder_create_snapshot (ByzanzRecorder *recorder, const GdkRegion *inva
   
   gdk_region_get_clipbox (invalid, &extents);
   cr = gdk_cairo_create (recorder->window);
-  surface = cairo_surface_create_similar (cairo_get_target (cr), CAIRO_CONTENT_COLOR,
+  surface = cairo_surface_create_similar (cairo_get_target (cr), CAIRO_CONTENT_COLOR_ALPHA,
       extents.width, extents.height);
   cairo_destroy (cr);
   cairo_surface_set_device_offset (surface, -extents.x, -extents.y);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]