diff --git a/src/wine-host/bridges/common.cpp b/src/wine-host/bridges/common.cpp index 820f800e..2f5a7eb4 100644 --- a/src/wine-host/bridges/common.cpp +++ b/src/wine-host/bridges/common.cpp @@ -20,6 +20,17 @@ #include "../editor.h" +/** + * The maximum number of Win32 messages to handle per message loop. This is + * needed because otherwise some plugins can run into an infinite loop. I've + * observed this with: + * + * - Waves plugins + * - Melda plugins when having multiple editor windows open within a single + * plugin group + */ +constexpr int max_win32_messages = 20; + HostBridge::HostBridge(MainContext& main_context, boost::filesystem::path plugin_path, pid_t parent_pid) diff --git a/src/wine-host/editor.h b/src/wine-host/editor.h index 0788e7d6..61dbe51e 100644 --- a/src/wine-host/editor.h +++ b/src/wine-host/editor.h @@ -34,17 +34,6 @@ #include "utils.h" #include "xdnd-proxy.h" -/** - * The maximum number of Win32 messages to handle per message loop. This is - * needed because otherwise some plugins can run into an infinite loop. I've - * observed this with: - * - * - Waves plugins - * - Melda plugins when having multiple editor windows open within a single - * plugin group - */ -constexpr int max_win32_messages [[maybe_unused]] = 20; - /** * The most significant bit in an X11 event's response type is used to indicate * the event source.