From 53c471c6a835d5cedeca99f2c97058d196a3fd7e Mon Sep 17 00:00:00 2001 From: Jamey Sharp Date: Thu, 23 Feb 2006 11:46:09 -0800 Subject: [PATCH] XCBFlush used to return non-positive on failure, and this test did not catch 0. Now it returns boolean: 0 or 1. Testing <= 0 covers both cases. I probably want to switch to a boolean test eventually. --- src/xcl/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xcl/io.c b/src/xcl/io.c index 6b675af2..e4ad9d32 100644 --- a/src/xcl/io.c +++ b/src/xcl/io.c @@ -132,7 +132,7 @@ void _XSend(Display *dpy, const char *data, long size) /* give dpy->buffer to XCB */ _XPutXCBBuffer(dpy); - if(XCBFlush(c) < 0) + if(XCBFlush(c) <= 0) _XIOError(dpy); /* get a new dpy->buffer */