Browse Source

Update DGL

tags/v2.1-alpha1-winvst
falkTX 6 years ago
parent
commit
eae5b55426
2 changed files with 5 additions and 3 deletions
  1. +3
    -1
      source/modules/dgl/src/Window.cpp
  2. +2
    -2
      source/modules/dgl/src/pugl/pugl_win.cpp

+ 3
- 1
source/modules/dgl/src/Window.cpp View File

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


+ 2
- 2
source/modules/dgl/src/pugl/pugl_win.cpp View File

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


Loading…
Cancel
Save