diff options
Diffstat (limited to 'libX11/src/xcb_io.c')
-rw-r--r-- | libX11/src/xcb_io.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libX11/src/xcb_io.c b/libX11/src/xcb_io.c index 727c6c79f..59873296c 100644 --- a/libX11/src/xcb_io.c +++ b/libX11/src/xcb_io.c @@ -774,3 +774,14 @@ void _XEatDataWords(Display *dpy, unsigned long n) dpy->xcb->reply_consumed = dpy->xcb->reply_length; _XFreeReplyData(dpy, False); } + +unsigned long +_XNextRequest(Display *dpy) +{ + /* This will update dpy->request. The assumption is that the next thing + * that the application will do is make a request so there's little + * overhead. + */ + require_socket(dpy); + return NextRequest(dpy); +} |