]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wincmn.cpp
Detect and use sys/select.h required by POSIX for select
[wxWidgets.git] / src / common / wincmn.cpp
index 101c995e7fa33c1d6664810bb088d4882ec9bc4f..e9d6e9eda1deb9c84b08553cf66940080b434f8f 100644 (file)
@@ -396,7 +396,7 @@ void wxWindowBase::Fit()
 {
     if ( !GetChildren().empty() )
     {
-        SetClientSize(GetBestSize());
+        SetSize(GetBestSize());
     }
     //else: do nothing if we have no children
 }
@@ -2399,14 +2399,14 @@ static void DoNotifyWindowAboutCaptureLost(wxWindow *win)
 {
     wxMouseCaptureLostEvent event(win->GetId());
     event.SetEventObject(win);
-    bool processed = win->GetEventHandler()->ProcessEvent(event);
-
-    wxASSERT_MSG( processed,
-                  _T("window that captured mouse didn't process wxEVT_MOUSE_CAPTURE_LOST") );
+    if ( !win->GetEventHandler()->ProcessEvent(event) )
+    {
+        wxFAIL_MSG( _T("window that captured the mouse didn't process wxEVT_MOUSE_CAPTURE_LOST") );
+    }
 }
 
 /* static */
-void wxWindowBase::NotifyCaptureLost(wxWindow *gainedCapture)
+void wxWindowBase::NotifyCaptureLost()
 {
     // don't do anything if capture lost was expected, i.e. resulted from
     // a wx call to ReleaseMouse or CaptureMouse: