aboutsummaryrefslogtreecommitdiff
path: root/doc/nx-X11_vs_XOrg69_patches/MaskEvent.c.NX.patch
blob: 6620d4baa13a77611ca069df3a5dd9224cf6cfdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- ./nx-X11/lib/X11/MaskEvent.c.X.original	2015-02-13 14:03:44.620443950 +0100
+++ ./nx-X11/lib/X11/MaskEvent.c	2015-02-10 19:13:12.944718089 +0100
@@ -75,5 +75,10 @@
 	    if (prev && prev->qserial_num != qe_serial)
 		/* another thread has snatched this event */
 		prev = NULL;
+#ifdef NX_TRANS_SOCKET
+            if (_XGetIOError(dpy)) {
+                return 0;
+            }
+#endif
 	}
 }