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