Browse Source

Update pugl, get rid of puglMacOSActivateApp (no longer needed)

Signed-off-by: falkTX <falktx@falktx.com>
pull/321/head
falkTX 2 years ago
parent
commit
48d37055d9
4 changed files with 1 additions and 18 deletions
  1. +0
    -5
      dgl/src/ApplicationPrivateData.cpp
  2. +1
    -1
      dgl/src/pugl-upstream
  3. +0
    -9
      dgl/src/pugl.cpp
  4. +0
    -3
      dgl/src/pugl.hpp

+ 0
- 5
dgl/src/ApplicationPrivateData.cpp View File

@@ -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
dgl/src/pugl-upstream

@@ -1 +1 @@
Subproject commit 7bb0bd672489ac0d0851dfd1b4980b33b7a9f48d
Subproject commit 24a1418b464e43f7f79af0d815c177121473bf1e

+ 0
- 9
dgl/src/pugl.cpp View File

@@ -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




+ 0
- 3
dgl/src/pugl.hpp View File

@@ -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);




Loading…
Cancel
Save