mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-28 15:20:15 +00:00
Make main window key and order to front in Skia/OSX port
This commit is contained in:
parent
851413e2a6
commit
a5a044f333
@ -38,6 +38,7 @@ int OSXApp::run(int argc, char* argv[])
|
|||||||
|
|
||||||
[app setActivationPolicy:NSApplicationActivationPolicyRegular];
|
[app setActivationPolicy:NSApplicationActivationPolicyRegular];
|
||||||
[app setDelegate:appDelegate];
|
[app setDelegate:appDelegate];
|
||||||
|
[app activateIgnoringOtherApps:YES];
|
||||||
|
|
||||||
app_main(argc, argv);
|
app_main(argc, argv);
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -49,6 +49,7 @@ using namespace she;
|
|||||||
[self setDelegate:m_delegate];
|
[self setDelegate:m_delegate];
|
||||||
[self setContentView:view];
|
[self setContentView:view];
|
||||||
[self center];
|
[self center];
|
||||||
|
[self makeKeyAndOrderFront:self];
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user