///////////////////////////////////////////////////////////////////////////////
-// Name: motif/evtloop.cpp
+// Name: src/motif/evtloop.cpp
// Purpose: implements wxEventLoop for Motif
// Author: Mattia Barbon
// Modified by:
#pragma message enable nosimpint
#endif
+#include "wx/unix/private.h"
#include "wx/motif/private.h"
static bool CheckForKeyUp(XEvent* event);
wxWindow* win = NULL;
// Find the first wxWindow that corresponds to this event window
- while (widget && !(win = wxGetWindowFromTable(widget)))
+ while (widget && ((win = wxGetWindowFromTable(widget))!=NULL))
widget = XtParent(widget);
if (!widget || !win)
wxWindow* win = NULL;
// Find the first wxWindow that corresponds to this event window
- while (widget && !(win = wxGetWindowFromTable(widget)))
+ while (widget && ((win = wxGetWindowFromTable(widget))!=NULL))
widget = XtParent(widget);
if (!widget || !win)
wxWindow* win = NULL;
// Find the first wxWindow that corresponds to this event window
- while (widget && !(win = wxGetWindowFromTable(widget)))
+ while (widget && ((win = wxGetWindowFromTable(widget))!=NULL))
widget = XtParent(widget);
if (!widget || !win)
DECLARE_DYNAMIC_CLASS(wxIdlePipeModule)
};
-IMPLEMENT_DYNAMIC_CLASS(wxIdlePipeModule, wxModule);
+IMPLEMENT_DYNAMIC_CLASS(wxIdlePipeModule, wxModule)
static void wxInputCallback( XtPointer, int* fd, XtInputId* )
{
timeout.tv_sec = 0;
timeout.tv_usec = 0;
- FD_ZERO( &in );
- FD_SET( *fd, &in );
+ wxFD_ZERO( &in );
+ wxFD_SET( *fd, &in );
if( select( *fd + 1, &in, NULL, NULL, &timeout ) <= 0 )
break;
timeout.tv_sec = 0;
timeout.tv_usec = 0;
- FD_ZERO( &in );
- FD_SET( idleFds[0], &in );
+ wxFD_ZERO( &in );
+ wxFD_SET( idleFds[0], &in );
if( select( idleFds[0] + 1, &in, NULL, NULL, &timeout ) > 0 )
return;
{
if (!wxInitIdleFds())
return false;
-
+
// install input handler for wxWakeUpIdle
XtAppAddInput((XtAppContext) wxTheApp->GetAppContext(),
idleFds[0],