X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/670f9935630beb2123a5ca62894ae92a3f0efa4f..6dcc13f25437f845cbe2e8670c89495db80749d7:/src/x11/evtloop.cpp diff --git a/src/x11/evtloop.cpp b/src/x11/evtloop.cpp index de6b1f8b83..2fbbbb421c 100644 --- a/src/x11/evtloop.cpp +++ b/src/x11/evtloop.cpp @@ -25,12 +25,12 @@ #ifndef WX_PRECOMP #include "wx/hash.h" #include "wx/app.h" + #include "wx/window.h" + #include "wx/timer.h" + #include "wx/module.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" #include "X11/Xlib.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,