diff options
author | Stephen Turnbull <stephenjturnbull@gmail.com> | 2012-01-04 10:18:29 -0800 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2012-01-10 00:32:46 -0800 |
commit | 6dd231d37c036d182e789f0af37ee5417792ad4e (patch) | |
tree | dfa6c6acae8e59b1289a120cd0cc241a74a2e312 /src/NextEvent.c | |
parent | 0d8ef503e2d51d727a912d6ef3cf017608e45b7f (diff) |
Don't re-enter the WaitLoop if block is set to false
See: https://bugs.freedesktop.org/show_bug.cgi?id=20048
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'src/NextEvent.c')
-rw-r--r-- | src/NextEvent.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/NextEvent.c b/src/NextEvent.c index 181d20e..b1f7bc7 100644 --- a/src/NextEvent.c +++ b/src/NextEvent.c @@ -731,7 +731,14 @@ WaitLoop: #endif return dpy_no; } - goto WaitLoop; + if (block) + goto WaitLoop; + else { +#ifdef USE_POLL + XtStackFree ((XtPointer) wf.fdlist, fdlist); +#endif + return -1; + } } #define IeCallProc(ptr) \ |