}
}
+// We need this for borderless windows, i.e. shaped windows or windows without
+// a title bar. For more info, see:
+// http://lists.apple.com/archives/cocoa-dev/2008/May/msg02091.html
+- (BOOL)canBecomeKeyWindow
+{
+ return YES;
+}
+
@end
@interface wxNSPanel : NSPanel
void wxNonOwnedWindowCocoaImpl::ShowWithoutActivating()
{
- [m_macWindow orderBack:nil];
+ [m_macWindow orderFront:nil];
[[m_macWindow contentView] setNeedsDisplay: YES];
}