From eae5b55426e5ded27fe5d46dea0319d9ad26510a Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 22 Sep 2018 22:03:40 +0200 Subject: [PATCH] Update DGL --- source/modules/dgl/src/Window.cpp | 4 +++- source/modules/dgl/src/pugl/pugl_win.cpp | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/source/modules/dgl/src/Window.cpp b/source/modules/dgl/src/Window.cpp index 33a240ba1..61d1452bf 100644 --- a/source/modules/dgl/src/Window.cpp +++ b/source/modules/dgl/src/Window.cpp @@ -396,7 +396,6 @@ struct Window::PrivateData { #elif defined(DISTRHO_OS_MAC) if (mWindow != nullptr) [mWindow makeKeyWindow]; - [NSApp activateIgnoringOtherApps:YES]; #else XRaiseWindow(xDisplay, xWindow); XSetInputFocus(xDisplay, xWindow, RevertToPointerRoot, CurrentTime); @@ -1202,6 +1201,9 @@ bool Window::openFileBrowser(const FileBrowserOptions& options) # else // not implemented return false; + + // unused + (void)options; # endif } #endif diff --git a/source/modules/dgl/src/pugl/pugl_win.cpp b/source/modules/dgl/src/pugl/pugl_win.cpp index 0143eb122..67f405814 100644 --- a/source/modules/dgl/src/pugl/pugl_win.cpp +++ b/source/modules/dgl/src/pugl/pugl_win.cpp @@ -418,7 +418,7 @@ handleMessage(PuglView* view, UINT message, WPARAM wParam, LPARAM lParam) } void -puglGrabFocus(PuglView*) +puglGrabFocus(PuglView* /*view*/) { // TODO } @@ -474,7 +474,7 @@ puglGetNativeWindow(PuglView* view) } void* -puglGetContext(PuglView*) +puglGetContext(PuglView* /*view*/) { #ifdef PUGL_HAVE_CAIRO if (view->ctx_type == PUGL_CAIRO) {