Browse Source

Fix showing webgui for linux standalones

Signed-off-by: falkTX <falktx@falktx.com>
pull/473/head
falkTX 7 months ago
parent
commit
45f50723d9
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      distrho/src/DistrhoUI.cpp

+ 6
- 1
distrho/src/DistrhoUI.cpp View File

@@ -217,7 +217,12 @@ PluginWindow& UI::PrivateData::createNextWindow(UI* const ui, uint width, uint h
;
opts.callback = webViewMessageCallback;
opts.callbackPtr = uiData;
uiData->webview = webViewCreate("file://" + path + "/index.html", uiData->winId, width, height, scaleFactor, opts);
uiData->webview = webViewCreate("file://" + path + "/index.html",
uiData->winId != 0 ? uiData->winId : uiData->window->getNativeWindowHandle(),
width,
height,
scaleFactor,
opts);
#endif
}
// If there are no callbacks, this is most likely a temporary window, so ignore idle callbacks


Loading…
Cancel
Save