Skip to content

Commit

Permalink
Fix showing webgui for linux standalones
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Oct 5, 2024
1 parent e045225 commit 45f5072
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion distrho/src/DistrhoUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 45f5072

Please sign in to comment.