]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/winuniv.cpp
don't treat changing focus to popup's child as loosing it
[wxWidgets.git] / src / univ / winuniv.cpp
index 0f5b59001421b9697f69391fa561bef63663222f..719515c2313cd3090a557a15c1b09bbc24c01a68 100644 (file)
@@ -763,6 +763,12 @@ int wxWindow::GetScrollRange(int orient) const
 
 void wxWindow::ScrollWindow(int dx, int dy, const wxRect *rect)
 {
+#ifdef __WXX11__
+
+    wxWindowX11::ScrollWindow( dx, dy, rect );
+
+#else
+
     // before scrolling it, ensure that we don't have any unpainted areas
     Update();
 
@@ -779,6 +785,8 @@ void wxWindow::ScrollWindow(int dx, int dy, const wxRect *rect)
         r = ScrollNoRefresh(0, dy, rect);
         Refresh(TRUE /* erase bkgnd */, &r);
     }
+    
+#endif
 }
 
 wxRect wxWindow::ScrollNoRefresh(int dx, int dy, const wxRect *rectTotal)