summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cairo-xlib-surface.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/cairo-xlib-surface.c b/src/cairo-xlib-surface.c
index 131551e7..39175bdf 100644
--- a/src/cairo-xlib-surface.c
+++ b/src/cairo-xlib-surface.c
@@ -547,7 +547,6 @@ _get_image_surface (cairo_xlib_surface_t *surface,
{
cairo_xlib_error_func_t old_handler;
- XSync (surface->dpy, False);
old_handler = XSetErrorHandler (_noop_error_handler);
ximage = XGetImage (surface->dpy,
@@ -556,7 +555,6 @@ _get_image_surface (cairo_xlib_surface_t *surface,
x2 - x1, y2 - y1,
AllPlanes, ZPixmap);
- XSync (surface->dpy, False);
XSetErrorHandler (old_handler);
/* If we get an error, the surface must have been a window,