From aa960026e66caffe0138f9689955c0b6df140cef Mon Sep 17 00:00:00 2001 From: Kevin Ollivier Date: Wed, 4 Mar 2009 19:09:24 +0000 Subject: [PATCH] Don't always set the titled mask. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59318 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/cocoa/nonownedwnd.mm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/osx/cocoa/nonownedwnd.mm b/src/osx/cocoa/nonownedwnd.mm index 73e3fa9cbc..73d60292d3 100644 --- a/src/osx/cocoa/nonownedwnd.mm +++ b/src/osx/cocoa/nonownedwnd.mm @@ -292,7 +292,12 @@ long style, long extraStyle, const wxString& name ) if ( style & wxFRAME_TOOL_WINDOW ) { - windowstyle |= NSTitledWindowMask | NSUtilityWindowMask; + windowstyle |= NSUtilityWindowMask; + if ( ( style & wxMINIMIZE_BOX ) || ( style & wxMAXIMIZE_BOX ) || + ( style & wxCLOSE_BOX ) || ( style & wxSYSTEM_MENU ) ) + { + windowstyle |= NSTitledWindowMask ; + } } else if ( ( style & wxPOPUP_WINDOW ) ) {