]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/dfb/wrapdfb.h
make it possible to create wxWindowDC for a hidden window
[wxWidgets.git] / include / wx / dfb / wrapdfb.h
index 626de036cb64aee6c27ca13e7d4f24bc538521fd..970c6ebf96d9fe82f461639778e49f6a3b8cc4d2 100644 (file)
@@ -299,7 +299,16 @@ struct wxIDirectFBEventBuffer : public wxDfbWrapper<IDirectFBEventBuffer>
 
     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)