flicker reduction on gtk

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43229 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Benjamin Williams
2006-11-09 16:42:01 +00:00
parent 55e345713a
commit ea53a6014a

View File

@@ -401,7 +401,14 @@ bool wxAuiMDIChildFrame::Create(wxAuiMDIParentFrame* parent,
wxAuiMDIClientWindow* pClientWindow = parent->GetClientWindow();
wxASSERT_MSG((pClientWindow != (wxWindow*) NULL), wxT("Missing MDI client window."));
wxPanel::Create(pClientWindow, id, wxDefaultPosition, size, style|wxNO_BORDER, name);
wxSize cli_size = pClientWindow->GetClientSize();
// create the window off-screen to prevent flicker
wxPanel::Create(pClientWindow,
id,
wxPoint(cli_size.x+1, cli_size.y+1),
size,
style|wxNO_BORDER, name);
SetMDIParentFrame(parent);