From a5a044f33377a70df6b90d852254a9078381a42a Mon Sep 17 00:00:00 2001 From: David Capello Date: Mon, 28 Dec 2015 18:33:57 -0300 Subject: [PATCH] Make main window key and order to front in Skia/OSX port --- src/she/osx/app.mm | 1 + src/she/osx/window.mm | 1 + 2 files changed, 2 insertions(+) diff --git a/src/she/osx/app.mm b/src/she/osx/app.mm index 55479796c..2f537cf1f 100644 --- a/src/she/osx/app.mm +++ b/src/she/osx/app.mm @@ -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; diff --git a/src/she/osx/window.mm b/src/she/osx/window.mm index f856abe60..9c4982d88 100644 --- a/src/she/osx/window.mm +++ b/src/she/osx/window.mm @@ -49,6 +49,7 @@ using namespace she; [self setDelegate:m_delegate]; [self setContentView:view]; [self center]; + [self makeKeyAndOrderFront:self]; return self; }