Ticket #18491: patch-NextEvent.c-BLOCK_CORRECTLY

File patch-NextEvent.c-BLOCK_CORRECTLY, 373 bytes (added by yaseppochi (Stephen J. Turnbull), 15 years ago)
Line 
1--- src/NextEvent.c.orig        2006-07-12 03:05:55.000000000 +0900
2+++ src/NextEvent.c     2009-02-14 17:22:36.000000000 +0900
3@@ -722,7 +722,14 @@
4 #endif
5        return dpy_no;
6     }
7-    goto WaitLoop;
8+    if (block)
9+        goto WaitLoop;
10+    else {
11+#ifdef USE_POLL
12+       XtStackFree ((XtPointer) wf.fdlist, fdlist);
13+#endif
14+        return -1;
15+    }
16 }
17 
18 #define IeCallProc(ptr) \