From: Stefan Csomor Date: Wed, 8 May 2002 23:25:20 +0000 (+0000) Subject: only use tool window style for floating windows, no modal dialog class (layer problems) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/14862aeb884ef1d43a19527baf05572c059b0972?hp=f8eebb9543004e8a1bf91d84d7ee38f33f977450 only use tool window style for floating windows, no modal dialog class (layer problems) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/toplevel.cpp b/src/mac/carbon/toplevel.cpp index 06ed406854..a9acd84e2c 100644 --- a/src/mac/carbon/toplevel.cpp +++ b/src/mac/carbon/toplevel.cpp @@ -241,7 +241,7 @@ void wxTopLevelWindowMac::MacCreateRealWindow( const wxString& title, WindowClass wclass = 0; WindowAttributes attr = kWindowNoAttributes ; - if ( HasFlag( wxFRAME_TOOL_WINDOW) || HasFlag(wxTINY_CAPTION_HORIZ) || HasFlag(wxTINY_CAPTION_VERT) ) + if ( HasFlag( wxFRAME_TOOL_WINDOW) /*|| HasFlag(wxTINY_CAPTION_HORIZ) || HasFlag(wxTINY_CAPTION_VERT)*/ ) { wclass = kFloatingWindowClass ; if ( HasFlag(wxTINY_CAPTION_VERT) ) @@ -262,7 +262,7 @@ void wxTopLevelWindowMac::MacCreateRealWindow( const wxString& title, } else { - wclass = kModalWindowClass ; + wclass = kDocumentWindowClass ; } if ( HasFlag( wxMINIMIZE_BOX ) || HasFlag( wxMAXIMIZE_BOX ) ) diff --git a/src/mac/toplevel.cpp b/src/mac/toplevel.cpp index 06ed406854..a9acd84e2c 100644 --- a/src/mac/toplevel.cpp +++ b/src/mac/toplevel.cpp @@ -241,7 +241,7 @@ void wxTopLevelWindowMac::MacCreateRealWindow( const wxString& title, WindowClass wclass = 0; WindowAttributes attr = kWindowNoAttributes ; - if ( HasFlag( wxFRAME_TOOL_WINDOW) || HasFlag(wxTINY_CAPTION_HORIZ) || HasFlag(wxTINY_CAPTION_VERT) ) + if ( HasFlag( wxFRAME_TOOL_WINDOW) /*|| HasFlag(wxTINY_CAPTION_HORIZ) || HasFlag(wxTINY_CAPTION_VERT)*/ ) { wclass = kFloatingWindowClass ; if ( HasFlag(wxTINY_CAPTION_VERT) ) @@ -262,7 +262,7 @@ void wxTopLevelWindowMac::MacCreateRealWindow( const wxString& title, } else { - wclass = kModalWindowClass ; + wclass = kDocumentWindowClass ; } if ( HasFlag( wxMINIMIZE_BOX ) || HasFlag( wxMAXIMIZE_BOX ) )