I'm having this problem on OSX Lion when entering/exiting fullscreen. I tried to reapply the style mask without success:
NSUInteger styleMask = NSResizableWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | NSTitledWindowMask;
styleMask |= NSTexturedBackgroundWindowMask;
window = [[NSWindow alloc] initWithContentRect:windowFrame
styleMask: styleMask
backing:NSBackingStoreBuffered
defer:NO];
and the fullscreen notification
(void)didExitFull:(NSNotification *)notification {
NSUInteger styleMask=[window styleMask];
[window setStyleMask:styleMask|NSMiniaturizableWindowMask];
}
It seems that the miniaturize button is not getting enable again. I also found this UI Usability problems on MacOSX 10.6 here