Make main window key and order to front in Skia/OSX port

This commit is contained in:
David Capello 2015-12-28 18:33:57 -03:00
parent 851413e2a6
commit a5a044f333
2 changed files with 2 additions and 0 deletions

View File

@ -38,6 +38,7 @@ int OSXApp::run(int argc, char* argv[])
[app setActivationPolicy:NSApplicationActivationPolicyRegular];
[app setDelegate:appDelegate];
[app activateIgnoringOtherApps:YES];
app_main(argc, argv);
return 0;

View File

@ -49,6 +49,7 @@ using namespace she;
[self setDelegate:m_delegate];
[self setContentView:view];
[self center];
[self makeKeyAndOrderFront:self];
return self;
}