#include "wx/module.h"
#endif
-#include "wx/private/selectdispatcher.h"
+#include "wx/private/fdiodispatcher.h"
#include "wx/unix/private.h"
#include "wx/x11/private.h"
-#include "X11/Xlib.h"
#include "wx/generic/private/timer.h"
#if wxUSE_THREADS
#include "wx/thread.h"
#endif
+#include <X11/Xlib.h>
#include <sys/time.h>
#include <unistd.h>
return false;
}
-bool wxEventLoopImpl::PreProcessEvent(XEvent *event)
+bool wxEventLoopImpl::PreProcessEvent(XEvent *WXUNUSED(event))
{
- // TODO
-#if 0
- HWND hWnd = msg->hwnd;
- wxWindow *wndThis = wxGetWindowFromHWND((WXHWND)hWnd);
-
-
- // try translations first; find the youngest window with a translation
- // table.
- wxWindow *wnd;
- for ( wnd = wndThis; wnd; wnd = wnd->GetParent() )
- {
- if ( wnd->MSWTranslateMessage((WXMSG *)msg) )
- return true;
- }
-
- // Anyone for a non-translation message? Try youngest descendants first.
- for ( wnd = wndThis; wnd; wnd = wnd->GetParent() )
- {
- if ( wnd->MSWProcessMessage((WXMSG *)msg) )
- return true;
- }
-#endif
-
return false;
}
{
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,
#if wxUSE_SOCKETS
// handle any pending socket events:
- wxSelectDispatcher::DispatchPending();
+ wxFDIODispatcher::DispatchPending();
#endif
(void) m_impl->ProcessEvent( &event );