aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/PeekIfEv.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/lib/X11/PeekIfEv.c')
-rw-r--r--nx-X11/lib/X11/PeekIfEv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nx-X11/lib/X11/PeekIfEv.c b/nx-X11/lib/X11/PeekIfEv.c
index a8da27932..93a725b49 100644
--- a/nx-X11/lib/X11/PeekIfEv.c
+++ b/nx-X11/lib/X11/PeekIfEv.c
@@ -73,6 +73,7 @@ XPeekIfEvent (dpy, event, predicate, arg)
prev = NULL;
#ifdef NX_TRANS_SOCKET
if (_XGetIOError(dpy)) {
+ UnlockDisplay(dpy);
return 0;
}
#endif