xnest: Ignore GetImage() error in xnestGetImage() (v3)
authorKeith Packard <keithp@keithp.com>
Sun, 24 Nov 2013 00:19:46 +0000 (16:19 -0800)
committerKeith Packard <keithp@keithp.com>
Sun, 24 Nov 2013 00:19:46 +0000 (16:19 -0800)
(I found an amended version of this patch and applied the difference
here - keithp)

v3: Don't call Xsync before restoring error handler as any errors
    generated by XGetImage() should be processed when this call
    returns as suggested by Jamey Sharp <jamey@minilop.net>

Signed-off-by: Egbert Eich <eich@freedesktop.org>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
hw/xnest/GCOps.c

index 7b1956d..d00511d 100644 (file)
@@ -115,7 +115,6 @@ xnestGetImage(DrawablePtr pDrawable, int x, int y, int w, int h,
 
     ximage = XGetImage(xnestDisplay, xnestDrawable(pDrawable),
                        x, y, w, h, planeMask, format);
-    XSync(xnestDisplay, False);
     XSetErrorHandler(old_handler);
 
     if (ximage) {