diff --git a/include/wx/dfb/wrapdfb.h b/include/wx/dfb/wrapdfb.h index 626de036cb..970c6ebf96 100644 --- a/include/wx/dfb/wrapdfb.h +++ b/include/wx/dfb/wrapdfb.h @@ -299,7 +299,16 @@ struct wxIDirectFBEventBuffer : public wxDfbWrapper bool WaitForEventWithTimeout(unsigned secs, unsigned millisecs) { - return Check(m_ptr->WaitForEventWithTimeout(m_ptr, secs, millisecs)); + DFBResult r = m_ptr->WaitForEventWithTimeout(m_ptr, secs, millisecs); + + // DFB_TIMEOUT is not an error in this function: + if ( r == DFB_TIMEOUT ) + { + m_lastResult = DFB_TIMEOUT; + return true; + } + + return Check(r); } bool GetEvent(wxDFBEvent& event)