From 6a613ad62508cde5aa9b9dca9204a82cd41d8831 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 7 Sep 2006 10:43:59 +0000 Subject: [PATCH] don't treat DFB_TIMEOUT as error in WaitForEventWithTimeout git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41039 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/dfb/wrapdfb.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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) -- 2.45.2