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.

This commit is contained in:
Jamey Sharp 2006-02-23 11:46:09 -08:00
parent 41c0121a87
commit 53c471c6a8

View file

@ -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 */