aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/WinEvent.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/lib/X11/WinEvent.c')
-rw-r--r--nx-X11/lib/X11/WinEvent.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/nx-X11/lib/X11/WinEvent.c b/nx-X11/lib/X11/WinEvent.c
index 67e825cb5..961fcf74b 100644
--- a/nx-X11/lib/X11/WinEvent.c
+++ b/nx-X11/lib/X11/WinEvent.c
@@ -79,5 +79,11 @@ XWindowEvent (dpy, w, mask, event)
if (prev && prev->qserial_num != qe_serial)
/* another thread has snatched this event */
prev = NULL;
+#ifdef NX_TRANS_SOCKET
+ if (_XGetIOError(dpy)) {
+ UnlockDisplay(dpy);
+ return 0;
+ }
+#endif
}
}