summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2006-10-14 21:25:10 -0700
committerJamey Sharp <jamey@minilop.net>2006-10-14 21:25:10 -0700
commitd3e65cb8cddf08913d83c9df2bb9b1517f2ad3a8 (patch)
treee04ca60064dec4a1f26ca6615eee38eb6b8f17dc
parent256eba6b40c5f811a03b04abf5f85f728ee3ab5d (diff)
downloadxorg-lib-libX11-d3e65cb8cddf08913d83c9df2bb9b1517f2ad3a8.tar.gz
XCB: check for and handle I/O errors in _XGetXCBBuffer.
-rw-r--r--src/xcb_lock.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xcb_lock.c b/src/xcb_lock.c
index 77061d00..852eb927 100644
--- a/src/xcb_lock.c
+++ b/src/xcb_lock.c
@@ -51,6 +51,9 @@ void _XGetXCBBuffer(Display *dpy)
{
static const xReq dummy_request;
unsigned int xcb_req = xcb_get_request_sent(dpy->xcb->connection);
+ if(xcb_connection_has_error(dpy->xcb->connection))
+ _XIOError(dpy);
+
/* if Xlib has a partial request pending then XCB doesn't know about
* the current request yet */
if(dpy->xcb->partial_request)