X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/670f9935630beb2123a5ca62894ae92a3f0efa4f..26d18378e5a495bbbda91ab0c30a6b9bd52903b3:/src/x11/evtloop.cpp diff --git a/src/x11/evtloop.cpp b/src/x11/evtloop.cpp index de6b1f8b83..0295cd1559 100644 --- a/src/x11/evtloop.cpp +++ b/src/x11/evtloop.cpp @@ -25,11 +25,11 @@ #ifndef WX_PRECOMP #include "wx/hash.h" #include "wx/app.h" + #include "wx/window.h" + #include "wx/timer.h" #endif -#include "wx/window.h" #include "wx/tooltip.h" -#include "wx/timer.h" #include "wx/module.h" #include "wx/unix/private.h" #include "wx/x11/private.h" @@ -42,6 +42,10 @@ #include #include +#ifdef HAVE_SYS_SELECT_H +# include +#endif + #if wxUSE_SOCKETS // ---------------------------------------------------------------------------- // wxSocketTable @@ -430,6 +434,9 @@ bool wxEventLoop::Dispatch() { XEvent event; + // Start off by checking if any of our child processes have finished. + wxCheckForFinishedChildren(); + // TODO allowing for threads, as per e.g. wxMSW // This now waits until either an X event is received,