X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/355b4d3de54b76db87439fa2142c7334a6e48f85..e69d5138dc8f95e294ae6d03beb4f321406f4e34:/src/motif/toplevel.cpp?ds=sidebyside diff --git a/src/motif/toplevel.cpp b/src/motif/toplevel.cpp index 01342c5b9b..5ce626267a 100644 --- a/src/motif/toplevel.cpp +++ b/src/motif/toplevel.cpp @@ -21,7 +21,10 @@ #include "wx/wxprec.h" #include "wx/toplevel.h" -#include "wx/app.h" + +#ifndef WX_PRECOMP + #include "wx/app.h" +#endif #ifdef __VMS__ #define XtDisplay XTDISPLAY @@ -65,14 +68,7 @@ static void wxTLWEventHandler( Widget wid, void wxTopLevelWindowMotif::PreDestroy() { -#ifdef __VMS -#pragma message disable codcauunr -#endif - if ( (GetWindowStyleFlag() & wxDIALOG_MODAL) != wxDIALOG_MODAL ) - wxModelessWindows.DeleteObject(this); -#ifdef __VMS -#pragma message enable codcauunr -#endif + wxModelessWindows.DeleteObject(this); m_icons.m_icons.Empty(); @@ -161,7 +157,7 @@ bool wxTopLevelWindowMotif::Create( wxWindow *parent, wxWindowID id, ( m_windowStyle & wxTINY_CAPTION_HORIZ ) || ( m_windowStyle & wxTINY_CAPTION_VERT ) ) decor |= MWM_DECOR_TITLE; - if( m_windowStyle & wxTHICK_FRAME ) + if( m_windowStyle & wxRESIZE_BORDER ) decor |= MWM_DECOR_BORDER; if( m_windowStyle & wxMINIMIZE_BOX ) decor |= MWM_DECOR_MINIMIZE; @@ -430,4 +426,3 @@ void wxTLWEventHandler( Widget wid, *continueToDispatch = True; } -