Signed-off-by: falkTX <falktx@falktx.com>pull/321/head
@@ -61,11 +61,6 @@ Application::PrivateData::PrivateData(const bool standalone) | |||||
puglSetWorldHandle(world, this); | puglSetWorldHandle(world, this); | ||||
puglSetClassName(world, DISTRHO_MACRO_AS_STRING(DGL_NAMESPACE)); | puglSetClassName(world, DISTRHO_MACRO_AS_STRING(DGL_NAMESPACE)); | ||||
#ifdef DISTRHO_OS_MAC | |||||
if (standalone) | |||||
puglMacOSActivateApp(); | |||||
#endif | |||||
} | } | ||||
Application::PrivateData::~PrivateData() | Application::PrivateData::~PrivateData() | ||||
@@ -1 +1 @@ | |||||
Subproject commit 7bb0bd672489ac0d0851dfd1b4980b33b7a9f48d | |||||
Subproject commit 24a1418b464e43f7f79af0d815c177121473bf1e |
@@ -411,15 +411,6 @@ void puglFallbackOnResize(PuglView* const view) | |||||
#if defined(DISTRHO_OS_MAC) | #if defined(DISTRHO_OS_MAC) | ||||
// -------------------------------------------------------------------------------------------------------------------- | |||||
// macOS specific, allow standalone window to gain focus | |||||
void puglMacOSActivateApp() | |||||
{ | |||||
[NSApp setActivationPolicy:NSApplicationActivationPolicyRegular]; | |||||
[NSApp activateIgnoringOtherApps:YES]; | |||||
} | |||||
// -------------------------------------------------------------------------------------------------------------------- | // -------------------------------------------------------------------------------------------------------------------- | ||||
// macOS specific, add another view's window as child | // macOS specific, add another view's window as child | ||||
@@ -78,9 +78,6 @@ void puglFallbackOnResize(PuglView* view); | |||||
#if defined(DISTRHO_OS_MAC) | #if defined(DISTRHO_OS_MAC) | ||||
// macOS specific, allow standalone window to gain focus | |||||
void puglMacOSActivateApp(); | |||||
// macOS specific, add another view's window as child | // macOS specific, add another view's window as child | ||||
PuglStatus puglMacOSAddChildWindow(PuglView* view, PuglView* child); | PuglStatus puglMacOSAddChildWindow(PuglView* view, PuglView* child); | ||||