X11/src/xcl io.c,1.8,1.9
Jamey Sharp
xlibs-commit at pdx.freedesktop.org
Thu Sep 30 05:57:10 UTC 2004
Committed by: jamey
Update of /cvs/xlibs/X11/src/xcl
In directory gabe:/tmp/cvs-serv15539/src/xcl
Modified Files:
io.c
Log Message:
2004-09-29 Jamey Sharp <jamey at minilop.net>
* src/xcl/io.c:
Make use of XCBPollForEvent from new XCB API.
Index: io.c
===================================================================
RCS file: /cvs/xlibs/X11/src/xcl/io.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- io.c 29 Sep 2004 16:41:46 -0000 1.8
+++ io.c 30 Sep 2004 05:57:08 -0000 1.9
@@ -114,6 +114,7 @@
int _XEventsQueued(Display *dpy, int mode)
{
XCBConnection *c;
+ XCBGenericEvent *e;
int ret;
if(dpy->xcl->event_owner != XlibOwnsEventQueue)
return 0;
@@ -123,9 +124,9 @@
_XSend(dpy, 0, 0);
else
check_internal_connections(dpy);
- while((ret = XCBEventQueueLength(c)) > 0)
- handle_event(dpy, XCBWaitEvent(c));
- if(ret < 0)
+ while((e = XCBPollForEvent(c, &ret)))
+ handle_event(dpy, e);
+ if(ret)
_XIOError(dpy);
return dpy->qlen;
}
More information about the xlibs-commit
mailing list