From 06dfd66d93bafb1da956748cc128235e0f4edba8 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Mon, 3 Oct 2022 03:36:56 +0200 Subject: [PATCH] Add a TODO about mutual recursion --- src/wine-host/bridges/clap.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wine-host/bridges/clap.cpp b/src/wine-host/bridges/clap.cpp index 36b6ec0f..7aec8bb7 100644 --- a/src/wine-host/bridges/clap.cpp +++ b/src/wine-host/bridges/clap.cpp @@ -458,6 +458,9 @@ void ClapBridge::run() { -> clap::ext::gui::plugin::CanResize::Response { const auto& [instance, _] = get_instance(request.instance_id); + // TODO: Qtractor calls this in response to request_resize(), so + // we need to handle mutual recursion here. We should do + // this for all GUI functions just to be safe. return main_context_ .run_in_context([&, plugin = instance.plugin.get(), gui = instance.extensions.gui]() {