diff --git a/src/cocoa/window.mm b/src/cocoa/window.mm index dfe05d763d..554fdf65b4 100644 --- a/src/cocoa/window.mm +++ b/src/cocoa/window.mm @@ -205,7 +205,8 @@ void wxWindowCocoa::DoMoveWindow(int x, int y, int width, int height) { wxLogDebug("wxWindow=%p::DoMoveWindow(%d,%d,%d,%d)",this,x,y,width,height); - NSView *superview = [m_cocoaNSView superview]; + NSView *nsview = m_dummyNSView?m_dummyNSView:m_cocoaNSView; + NSView *superview = [nsview superview]; wxCHECK_RET(superview,"NSView does not have a superview"); NSRect parentRect = [superview frame];