]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/window.cpp
make --static flag act on --cppflags too.
[wxWidgets.git] / src / mac / window.cpp
index 41c65765be6c3016f490173643c77c12431c7928..97326af879fd493f0cc7d8b4fd12e6838f4737e9 100644 (file)
@@ -617,6 +617,8 @@ void wxWindowMac::DoMoveWindow(int x, int y, int width, int height)
                                frame->PositionStatusBar();
                                frame->PositionToolBar();
                        }
                                frame->PositionStatusBar();
                                frame->PositionToolBar();
                        }
+                       if ( doMove )
+                               wxWindowMac::MacTopLevelWindowChangedPosition() ; // like this only children will be notified
                }
                else
                {
                }
                else
                {
@@ -2194,6 +2196,19 @@ void wxWindowMac::MacSuperChangedPosition()
        }
 }
 
        }
 }
 
+void wxWindowMac::MacTopLevelWindowChangedPosition() 
+{
+       // only screen-absolute structures have to be moved i.e. glcanvas
+
+       wxNode *node = GetChildren().First();
+       while ( node )
+       {
+               wxWindowMac *child = (wxWindowMac *)node->Data();
+               child->MacTopLevelWindowChangedPosition() ;
+               node = node->Next();
+       }
+}
+
 bool wxWindowMac::MacSetPortFocusParams( const Point & localOrigin, const Rect & clipRect, WindowRef window , wxWindowMac* win ) 
 {
        if ( window == NULL )
 bool wxWindowMac::MacSetPortFocusParams( const Point & localOrigin, const Rect & clipRect, WindowRef window , wxWindowMac* win ) 
 {
        if ( window == NULL )