]> git.saurik.com Git - wxWidgets.git/commitdiff
All toplevel windows without the wxNO_BORDER style should
authorMattia Barbon <mbarbon@cpan.org>
Sun, 28 Aug 2005 08:02:13 +0000 (08:02 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Sun, 28 Aug 2005 08:02:13 +0000 (08:02 +0000)
have a border under MWM, too.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35329 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/motif/toplevel.cpp

index 419ba40ec3fbeeb3dcc3ac61626d26e23c3551b1..e5cd9e67170bf9548ccbcf7b8f982d70599d69e4 100644 (file)
@@ -155,6 +155,8 @@ bool wxTopLevelWindowMotif::Create( wxWindow *parent, wxWindowID id,
     if( XmIsMotifWMRunning( shell ) )
     {
         int decor = 0 ;
+        if( !(m_windowStyle & wxNO_BORDER) )
+            decor |= MWM_DECOR_BORDER;
         if( m_windowStyle & wxRESIZE_BORDER )
             decor |= MWM_DECOR_RESIZEH;
         if( m_windowStyle & wxSYSTEM_MENU )