11/*
22 * DISTRHO Plugin Framework (DPF)
3- * Copyright (C) 2012-2025 Filipe Coelho <falktx@falktx.com>
3+ * Copyright (C) 2012-2026 Filipe Coelho <falktx@falktx.com>
44 *
55 * Permission to use, copy, modify, and/or distribute this software for any purpose with
66 * or without fee is hereby granted, provided that the above copyright notice and this
@@ -63,8 +63,8 @@ START_NAMESPACE_DISTRHO
6363WebView* webview_choc_create (const WEB_VIEW_NAMESPACE::WebViewOptions& opts)
6464{
6565 WebView::Options wopts;
66- wopts.acceptsFirstMouseClick = true ;
6766 wopts.enableDebugMode = true ;
67+ wopts.transparentBackground = true ;
6868
6969 std::unique_ptr<WebView> webview = std::make_unique<WebView>(wopts);
7070 DISTRHO_SAFE_ASSERT_RETURN (webview->loadedOK (), nullptr );
@@ -74,10 +74,8 @@ WebView* webview_choc_create(const WEB_VIEW_NAMESPACE::WebViewOptions& opts)
7474 webview->addInitScript (" function postMessage(m){window.chrome.webview.postMessage(m);}" );
7575
7676 void * const callbackPtr = opts.callbackPtr ;
77- webview->bind ([callback, callbackPtr](const std::string& value) {
78- char * const data = strdup (value.data ());
79- callback (callbackPtr, data);
80- std::free (data);
77+ webview->bind ([callback, callbackPtr](std::string& value) {
78+ callback (callbackPtr, value.data ());
8179 });
8280 }
8381 else
0 commit comments