[cairo-commit] src/cairo-xlib-surface.c

Chris Wilson ickle at kemper.freedesktop.org
Sat Dec 29 06:59:22 PST 2012


 src/cairo-xlib-surface.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c97f2d4acd5c4a1a4b839c72626f84e242e60b23
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Sat Dec 29 14:56:24 2012 +0000

    xlib/shm: Do not trigger a surplus event from XShmPutImage
    
    As our lazy event mechanism is sufficient for tracking when to reuse shm
    memory, and the events are not necessary for ShmPut/ShmGetImage paths.
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/cairo-xlib-surface.c b/src/cairo-xlib-surface.c
index e9e647a..4b90b10 100644
--- a/src/cairo-xlib-surface.c
+++ b/src/cairo-xlib-surface.c
@@ -1296,7 +1296,7 @@ _cairo_xlib_surface_draw_image (cairo_xlib_surface_t   *surface,
 
     if (ximage.obdata)
 	XShmPutImage (display->display, surface->drawable, gc, &ximage,
-		      src_x, src_y, dst_x, dst_y, width, height, TRUE);
+		      src_x, src_y, dst_x, dst_y, width, height, FALSE);
     else
 	XPutImage (display->display, surface->drawable, gc, &ximage,
 		   src_x, src_y, dst_x, dst_y, width, height);


More information about the cairo-commit mailing list