Skip to content

Commit 45f5072

Browse files
committed
Fix showing webgui for linux standalones
Signed-off-by: falkTX <[email protected]>
1 parent e045225 commit 45f5072

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

distrho/src/DistrhoUI.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,12 @@ PluginWindow& UI::PrivateData::createNextWindow(UI* const ui, uint width, uint h
217217
;
218218
opts.callback = webViewMessageCallback;
219219
opts.callbackPtr = uiData;
220-
uiData->webview = webViewCreate("file://" + path + "/index.html", uiData->winId, width, height, scaleFactor, opts);
220+
uiData->webview = webViewCreate("file://" + path + "/index.html",
221+
uiData->winId != 0 ? uiData->winId : uiData->window->getNativeWindowHandle(),
222+
width,
223+
height,
224+
scaleFactor,
225+
opts);
221226
#endif
222227
}
223228
// If there are no callbacks, this is most likely a temporary window, so ignore idle callbacks

0 commit comments

Comments
 (0)