mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-07 16:48:31 +02:00
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:
parent
41c0121a87
commit
53c471c6a8
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue