ApplicationCocoa: Set activateIgnoringOtherApps

Fixes issues with window opening in background, unfocused
This commit is contained in:
Luke Street 2021-03-30 12:34:00 -04:00
parent 8c9f44a29f
commit 77d0fce78a
1 changed files with 2 additions and 0 deletions

View File

@ -109,6 +109,8 @@ public:
while (![m_metalCtx.m_dev supportsTextureSampleCount:m_metalCtx.m_sampleCount])
m_metalCtx.m_sampleCount = flp2(m_metalCtx.m_sampleCount - 1);
Log.report(logvisor::Info, FMT_STRING("using Metal renderer"));
[[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
}
EPlatformType getPlatformType() const override {