aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/NextEvent.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/lib/X11/NextEvent.c')
-rw-r--r--nx-X11/lib/X11/NextEvent.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/nx-X11/lib/X11/NextEvent.c b/nx-X11/lib/X11/NextEvent.c
index 1c9080651..71d84223e 100644
--- a/nx-X11/lib/X11/NextEvent.c
+++ b/nx-X11/lib/X11/NextEvent.c
@@ -48,6 +48,12 @@ XNextEvent (dpy, event)
if (dpy->head == NULL)
_XReadEvents(dpy);
+#ifdef NX_TRANS_SOCKET
+ if (_XGetIOError(dpy)) {
+ UnlockDisplay(dpy);
+ return 0;
+ }
+#endif
qelt = dpy->head;
*event = qelt->event;
_XDeq(dpy, NULL, qelt);