]> git.saurik.com Git - wxWidgets.git/commitdiff
Window management and sizer layout corrections
authorJulian Smart <julian@anthemion.co.uk>
Tue, 26 Feb 2002 18:28:34 +0000 (18:28 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 26 Feb 2002 18:28:34 +0000 (18:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/toplvcmn.cpp
src/x11/toplevel.cpp

index 6c9f3d89f93f900afebe73228983d133f9f1c4c2..865d29f444346ef954ae4e5da13215471e132b7e 100644 (file)
@@ -113,14 +113,12 @@ void wxTopLevelWindowBase::DoClientToScreen(int *x, int *y) const
 // whole client area
 void wxTopLevelWindowBase::OnSize(wxSizeEvent& WXUNUSED(event))
 {
-    // if we're using constraints - do use them
-#if wxUSE_CONSTRAINTS
+    // if we're using constraints or sizers - do use them
     if ( GetAutoLayout() )
     {
         Layout();
     }
     else
-#endif // wxUSE_CONSTRAINTS
     {
         // do we have _exactly_ one child?
         wxWindow *child = (wxWindow *)NULL;
index fd6dea93f95eb66e7c3f392a47e2cdc61243d31e..645a179f70830a7558ac4991e9e42fc94069c2a1 100644 (file)
@@ -163,6 +163,7 @@ bool wxTopLevelWindowX11::Create(wxWindow *parent,
                   FocusChangeMask |
                   ColormapChangeMask |
                   StructureNotifyMask |
+                  ConfigureNotify |
                   PropertyChangeMask
                   );
     
@@ -416,6 +417,11 @@ bool wxSetWMDecorations(Window w, long style)
     {
         wmProp.props |= GR_WM_PROPS_CAPTION ;
         wmProp.flags |= GR_WM_FLAGS_PROPS ;
+
+        // The default dialog style doesn't include any kind
+        // of border, which is a bit odd. Anyway, inclusion
+        // of a caption surely implies a border.
+        style |= wxTHICK_FRAME;
     }
 
     if (style & wxTHICK_FRAME)