Browse Source

Dont prefer UI bridges on bridged LV2 plugins

Double-bridge is not nice
tags/v1.9.9
falkTX 6 years ago
parent
commit
c8a65dc0d4
1 changed files with 7 additions and 4 deletions
  1. +7
    -4
      source/backend/plugin/CarlaPluginLV2.cpp

+ 7
- 4
source/backend/plugin/CarlaPluginLV2.cpp View File

@@ -1449,7 +1449,8 @@ public:


if (fUI.window != nullptr) if (fUI.window != nullptr)
{ {
fUI.window->setChildWindow(fUI.widget);
if (fUI.widget != nullptr)
fUI.window->setChildWindow(fUI.widget);
fUI.window->setTitle(fLv2Options.windowTitle); fUI.window->setTitle(fLv2Options.windowTitle);
} }


@@ -5259,10 +5260,12 @@ public:
int eQt4, eQt5, eGtk2, eGtk3, eCocoa, eWindows, eX11, iCocoa, iWindows, iX11, iExt, iFinal; int eQt4, eQt5, eGtk2, eGtk3, eCocoa, eWindows, eX11, iCocoa, iWindows, iX11, iExt, iFinal;
eQt4 = eQt5 = eGtk2 = eGtk3 = eCocoa = eWindows = eX11 = iCocoa = iWindows = iX11 = iExt = iFinal = -1; eQt4 = eQt5 = eGtk2 = eGtk3 = eCocoa = eWindows = eX11 = iCocoa = iWindows = iX11 = iExt = iFinal = -1;


#if defined(BUILD_BRIDGE) || defined(LV2_UIS_ONLY_BRIDGES)
const bool preferUiBridges(true);
#if defined(LV2_UIS_ONLY_BRIDGES)
const bool preferUiBridges = true;
#elif defined(BUILD_BRIDGE)
const bool preferUiBridges = false;
#else #else
const bool preferUiBridges(pData->engine->getOptions().preferUiBridges && (pData->hints & PLUGIN_IS_BRIDGE) == 0);
const bool preferUiBridges = pData->engine->getOptions().preferUiBridges;
#endif #endif
bool hasShowInterface = false; bool hasShowInterface = false;




Loading…
Cancel
Save