commit 48d37055d9cf00c231d1a72aa20d166268933c3a
parent a65ac8545d7c7c6f549f403042caad6726aca199
Author: falkTX <falktx@falktx.com>
Date: Fri, 17 Jun 2022 21:16:34 +0100
Update pugl, get rid of puglMacOSActivateApp (no longer needed)
Signed-off-by: falkTX <falktx@falktx.com>
Diffstat:
3 files changed, 0 insertions(+), 17 deletions(-)
diff --git a/dgl/src/ApplicationPrivateData.cpp b/dgl/src/ApplicationPrivateData.cpp
@@ -61,11 +61,6 @@ Application::PrivateData::PrivateData(const bool standalone)
puglSetWorldHandle(world, this);
puglSetClassName(world, DISTRHO_MACRO_AS_STRING(DGL_NAMESPACE));
-
-#ifdef DISTRHO_OS_MAC
- if (standalone)
- puglMacOSActivateApp();
-#endif
}
Application::PrivateData::~PrivateData()
diff --git a/dgl/src/pugl.cpp b/dgl/src/pugl.cpp
@@ -412,15 +412,6 @@ void puglFallbackOnResize(PuglView* const view)
#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
PuglStatus
diff --git a/dgl/src/pugl.hpp b/dgl/src/pugl.hpp
@@ -78,9 +78,6 @@ void puglFallbackOnResize(PuglView* view);
#if defined(DISTRHO_OS_MAC)
-// macOS specific, allow standalone window to gain focus
-void puglMacOSActivateApp();
-
// macOS specific, add another view's window as child
PuglStatus puglMacOSAddChildWindow(PuglView* view, PuglView* child);