X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7372fd0a3c5b84f7cbaaf37592f7d413a3e0372b..c4e387521b7297a24e4aa016b588cf77d32d1b5f:/src/mac/window.cpp diff --git a/src/mac/window.cpp b/src/mac/window.cpp index 44cd7f0919..471c87c462 100644 --- a/src/mac/window.cpp +++ b/src/mac/window.cpp @@ -1569,7 +1569,12 @@ const wxRegion& wxWindowMac::MacGetVisibleRegion( bool respectChildrenAndSibling x = y = 0 ; parent->MacWindowToRootWindow( &x, &y ) ; MacRootWindowToWindow( &x , &y ) ; - SetRectRgn( tempRgn , x , y , x + size.x , y + size.y ) ; + + SetRectRgn( tempRgn , + x + parent->MacGetLeftBorderSize() , y + parent->MacGetTopBorderSize() , + x + size.x - parent->MacGetLeftBorderSize() - parent->MacGetRightBorderSize(), + y + size.y - parent->MacGetTopBorderSize() - parent->MacGetBottomBorderSize()) ; + SectRgn( visRgn , tempRgn , visRgn ) ; if ( parent->IsTopLevel() ) break ;