From b574386cede7cf1081939dc62f2e48513a31ef78 Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 10 Oct 2014 20:53:12 +0100 Subject: [PATCH] Skip UI embed if using osx (for now) --- dgl/src/Window.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dgl/src/Window.cpp b/dgl/src/Window.cpp index 9d3c7441..fda43154 100644 --- a/dgl/src/Window.cpp +++ b/dgl/src/Window.cpp @@ -117,6 +117,7 @@ struct Window::PrivateData { #endif } +#ifndef DISTRHO_OS_MAC // TODO not working yet PrivateData(App& app, Window* const self, const intptr_t parentId) : fApp(app), fSelf(self), @@ -159,6 +160,7 @@ struct Window::PrivateData { fFirstInit = false; } } +#endif void init() { @@ -879,7 +881,14 @@ Window::Window(App& app, Window& parent) : pData(new PrivateData(app, this, parent)) {} Window::Window(App& app, intptr_t parentId) +#ifndef DISTRHO_OS_MAC // TODO not working yet : pData(new PrivateData(app, this, parentId)) {} +#else + : pData(new PrivateData(app, this)) +{ + show(); +} +#endif Window::~Window() {