]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't always set the titled mask.
authorKevin Ollivier <kevino@theolliviers.com>
Wed, 4 Mar 2009 19:09:24 +0000 (19:09 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Wed, 4 Mar 2009 19:09:24 +0000 (19:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59318 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/nonownedwnd.mm

index 73e3fa9cbcadc1350260260db78d8602fe8f5e15..73d60292d3ffca7bf22c665968cde296b116f3de 100644 (file)
@@ -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 ) )
     {