Move Win32 message limit constant

This commit is contained in:
Robbert van der Helm
2021-11-30 03:23:32 +01:00
parent b5a2a6bfd4
commit ce8e4dccdf
2 changed files with 11 additions and 11 deletions
+11
View File
@@ -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)
-11
View File
@@ -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.