diff --git a/src/wine-host/bridges/clap-impls/host-proxy.cpp b/src/wine-host/bridges/clap-impls/host-proxy.cpp index 0775060e..065838fe 100644 --- a/src/wine-host/bridges/clap-impls/host-proxy.cpp +++ b/src/wine-host/bridges/clap-impls/host-proxy.cpp @@ -28,8 +28,15 @@ clap_host_proxy::clap_host_proxy(ClapBridge& bridge, host_vtable_(clap_host_t{ .clap_version = clamp_clap_version(host_args_.clap_version), .host_data = this, - .name = host_args_.name.c_str(), - .vendor = host_args_.vendor ? host_args_.vendor->c_str() : nullptr, + // HACK: Certain plugins may have undesirable DAW-specific behaviour. + // Chromaphone 3 for instance has broken text input dialogs when + // using Bitwig. + .name = bridge_.config_.hide_daw ? product_name_override + : host_args_.name.c_str(), + .vendor = + bridge_.config_.hide_daw + ? vendor_name_override + : (host_args_.vendor ? host_args_.vendor->c_str() : nullptr), .url = host_args_.url ? host_args_.url->c_str() : nullptr, .version = host_args_.version.c_str(), .get_extension = host_get_extension, diff --git a/src/wine-host/bridges/clap.h b/src/wine-host/bridges/clap.h index 6c56bbd5..2a8266a5 100644 --- a/src/wine-host/bridges/clap.h +++ b/src/wine-host/bridges/clap.h @@ -326,6 +326,14 @@ class ClapBridge : public HostBridge { */ ClapLogger logger_; + /** + * The configuration for this instance of yabridge based on the path to the + * `.so` (or well `.clap`) file that got loaded by the host. This + * configuration gets loaded on the plugin side, and then sent over to the + * Wine host as part of the startup process. + */ + Configuration config_; + private: /** * Generate a nique instance identifier using an atomic fetch-and-add. This @@ -363,14 +371,6 @@ class ClapBridge : public HostBridge { */ void unregister_plugin_instance(size_t instance_id); - /** - * The configuration for this instance of yabridge based on the path to the - * `.so` (or well `.clap`) file that got loaded by the host. This - * configuration gets loaded on the plugin side, and then sent over to the - * Wine host as part of the startup process. - */ - Configuration config_; - /** * The shared library handle of the CLAP plugin. */