diff --git a/src/aui/floatpane.cpp b/src/aui/floatpane.cpp index c70ef3e168..b365752ee1 100644 --- a/src/aui/floatpane.cpp +++ b/src/aui/floatpane.cpp @@ -41,7 +41,8 @@ wxFloatingPane::wxFloatingPane(wxWindow* parent, : wxFloatingPaneBaseClass(parent, id, wxEmptyString, pane.floating_pos, pane.floating_size, wxRESIZE_BORDER | wxSYSTEM_MENU | wxCAPTION | - wxCLOSE_BOX | wxFRAME_NO_TASKBAR | + (pane.HasCloseButton()?wxCLOSE_BOX:0) | + wxFRAME_NO_TASKBAR | wxFRAME_FLOAT_ON_PARENT | wxCLIP_CHILDREN | (pane.IsFixed()?0:wxRESIZE_BORDER) )