Fix needed to allow shaped windows, and other windows without a title bar, to get the focus when clicked under OS X.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
9f43f2691c
commit
2c3ce6c46d
@ -132,6 +132,14 @@ typedef void (*wxOSX_NoResponderHandlerPtr)(NSView* self, SEL _cmd, SEL selector
|
||||
}
|
||||
}
|
||||
|
||||
// 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
|
||||
|
Loading…
Reference in New Issue
Block a user